Math Fmod
Returns the remainder of the division of two numbers that rounds the quotient towards zero.
Syntax
Fmod( float x, float y ) |
Parameters
x | float | A specified number. |
y | float | A specified number. It has to be a positive. |
Return Values
Returns the remainder of x/y. |
Copy
Example
-----This will display the integer and fractional part of a given number.
--Millimeters mode used
SetUnits(Units.Millimeters)
--Laser Parameter settings
Laser.JumpSpeed = 2000
Laser.MarkSpeed = 1000
--Delay settings
Laser.JumpDelay = 150
Laser.MarkDelay = 200
--Display the integer and fractional part of the remainder
Report(Math.Fmod(10,3.4))