Returns the integral value nearest the decimal in the direction of the current rounding mode.
If the current rounding mode rounds toward negative infinity, then [decimal->rint] is identical to [decimal->floor].
If the current rounding mode rounds toward positive infinity, then [decimal->rint] is identical to [decimal->ceil].
Decimal Object->rint
Use the [decimal->rint] method. The following example returns the integral value nearest the decimal in the direction of the current rounding mode.
Code
1.5->rint
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