mathLib.modf
The system function mathLib.modf splits a number into integral and fractional parts, both with the same sign as the number. The fractional part is returned in result and the integral part is returned in numericItem2.
- result
- Any numeric or HEX item, as described in Mathematical (system words). The fractional part of numericItem1 is converted to the format of result and returned in result.
- numericItem1
- Any numeric or HEX item, as described in Mathematical (system words).
- numericItem2
- Any numeric or HEX item, as described in Mathematical (system words). The integral part of numericItem1 is converted to the format of numericItem2 and returned in numericItem2.