From SA-MP Wiki

Jump to: navigation, search


Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Get the fractional part of a float. This means the value of the numbers after the decimal point.

valueThe 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

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • floatround: Convert a float to an integer (rounding).
Personal tools