floatfract()

floatfract()

Description

Return the fractional part of a number

Syntax

floatfract(value);

Parameters

Variable

Input

Variable

Input

value

The number to extract the fractional part of.

Returns

The fractional part of the parameter, in floating point format.

For example, if the input value is “3.14”, floatfract returns “0.14”.

Function call example

Float type numbers fraction example
new Float: data1 = 10.56; new Float: frac; main(){ frac = floatfract(data1); //result will be frac = 0.56 while(1){ Delay(100); } }