Floatfract
From SA-MP Wiki
[edit]
floatfract
![]() | Note: This function name starts with a lowercase letter. |
Description:
Get the fractional part of a float. This means the value of the numbers after the decimal point.
(Float:value)
value | The float to get the fractional part of. |
Return Values:
The fractional part of the float, as a float value.
Example Usage:
new Float:fFract = floatfract(3.14159); // returns 0.14159
[edit]
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- floatround: Convert a float to an integer (rounding).