Returns the floating point remainder r = x - ny when y is non-zero, and where x is the decimal and y is the required decimal parameter. The value n is the integral value nearest the exact value x/y. When | n - x/y | = ½, the value n is chosen to be even.
Decimal Object->remainder(Decimal Value)
Use the [decimal->remainder] method. The following example returns the floating point remainder.
Code
42.0->remainder(5.0)
Result
2.000000
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments