Skip to content

Commit

Permalink
fixed docs for .scale
Browse files Browse the repository at this point in the history
the scale of `1` is actually 0
  • Loading branch information
krtschmr committed Nov 1, 2023
1 parent 54aa09f commit 9a8bc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ BigDecimal_precision(VALUE self)
* Returns the number of decimal digits following the decimal digits in +self+.
*
* BigDecimal("0").scale # => 0
* BigDecimal("1").scale # => 1
* BigDecimal("1").scale # => 0
* BigDecimal("1.1").scale # => 1
* BigDecimal("3.1415").scale # => 4
* BigDecimal("-1e20").precision # => 0
Expand Down

0 comments on commit 9a8bc9c

Please sign in to comment.