limit

BigDecimal.limit(digits)
Class Public methods

Limit the number of significant digits in newly created BigDecimal numbers to the specified value. Rounding is performed as necessary, as specified by ::mode.

A limit of 0, the default, means no upper limit.

The limit specified by this method takes less priority over any limit specified to instance methods such as ceil, floor, truncate, or round.

doc_ruby_on_rails
2015-03-31 05:25:29
Comments
Leave a Comment

Please login to continue.