8000 Tags · hiroshist/decimal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: hiroshist/decimal

Tags

1.0.1

Toggle 1.0.1's commit message
RequireFromString (shopspring#73)

fmt

1.0.0

Toggle 1.0.0's commit message
Fix Floor() and Ceil() for integer values (shopspring#64)

Implementation of aforementioned methods applied an integer multiplier
to int part, and rejected the exponent. This did not work well for
positive exponent values - multiplier was supposed to be a non-integer
value less than 1, but was rounded up to it. This caused different
results for equal Decimal values like decimal.New(19, 1) and
decimal.New(1900, -1).

Now functions return the receiver if it represents an integer value.
This also reduces execution time for previously broken cases.
0