Description
This function returns the fractional portion of the floating-point expression given by expr. If expr is negative, then the value returned by frac will also be negative. frac essentially derives the integral value using the C function trunc() and subtracts that resultant value from provided value: e.g. result = providedValue - trunc( providedValue ).
Or more simply, it subtracts the integer portion of floating-point expression expr from the floating-point expression expr resulting in the fraction.
All the math.incl header C functions, including trunc() are available via the math.incl header. The FB Editor recognizes them and they can be called directly.
Documentation for the math.incl calls can be found in Terminal.app by issuing the 'man' command with the function name ( e.g. 'man floor' ) appended.