Parameters & Returns
Parameters
Returns
Quick Summary
Returns the fractional part of a number.
Takes value (number).
Returns the fractional part.
Technical Exegesis...
Returns only the fractional (decimal) component of a number by subtracting the truncated integer part.
Examples: mathFrac(3.7) returns 0.7, mathFrac(-2.3) returns -0.3
The result has the same sign as the input value. Implemented as: value - mathTrunc(value)