Repository navigation
Fixes
-
Comparisons no longer ignore decimals that a smaller explicit scale left in the value.
Decimal::create('1.9', 0)keeps1.9as its value, butcompareTo(1)returned0andequals(1)returnedtrue. They now return1andfalse. This coverscompareTo(),equals(),greaterThan(),lessThan(),greaterThanOrEquals(),lessThanOrEquals(),between(),min()andmax()(#32).Values created without an explicit scale, or with a scale that fits them, compare as before.
Full Changelog: 1.4.1...1.4.2