PhoenixKit 2.26.1: Whole numbers no longer turn into 1E+1
PhoenixKit 2.26.1 fixes the decimal parsing added in 2.26.0.
A whole number came back in exponent form: "10" was read as 1E+1. The value was equal to 10, but it was printed as 1E+1 in pages and in JSON, and did not compare as equal to a plain 10 in Elixir code. Whole numbers now stay as typed. Trailing zeros after the decimal point are still dropped, so "2.500" becomes 2.5.
The fix applies to every form that uses the <.decimal_input> component and to modules that call PhoenixKit.Utils.Number.parse_decimal/2 or format_decimal/1.
Full release notes: PhoenixKit 2.26.1
2.26.1 · 16 September 2026
Fixed
PhoenixKit.Utils.Number.parse_decimal/2andformat_decimal/1no longer return a whole number in exponent form:"10"used to parse to1E+1, which isDecimal.equal?/2toDecimal.new("10")but not==to it, and printed as1E+1throughto_string/1and Jason. Trailing fraction zeros are still stripped ("2.500"→2.5). (#819)
PhoenixKit 2.26.1. Install or update: {:phoenix_kit, "~> 2.26"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.