Lasso Soft Inc. > Home

[ decimal->rint ]

Method

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].

  • Syntax
Decimal Object->rint
Examples
  • Beginner

To return the integral value nearest the decimal in the direction of the current rounding mode:

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
Resources
  • Articles

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft