Repository navigation
v8.1.2
A bug fix release. Decimals from 0 to 100 format exactly as in 8.1.1.
Fixed
$decimalsabove 100 throwsInvalidArgumentExceptioninNumber::format(),Number::compact(),Number::percentage(),Bytes::format(),Money::format()andMoney::compact(). Very large values used to exhaust memory with a fatal error, or return wrong digits with a locale:Number::format(1.5, 100000000, false, 'en_US')returned"0".- Exception messages quote at most 50 bytes of the value they reject, so a huge input no longer ends up whole in a message or a log.
Compatibility
- Decimals from 0 to 100 format exactly as before.
Full Changelog: 8.1.1...8.1.2