Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
print NaN and Infinity.
- The performance of the `to_string` function from the `float` module has been
improved on the Erlang target.
- The performance of the `inspect` function from the `string` module for floats
has been improved on the Erlang target.

## v1.0.5 - 2026-08-06

Expand Down
2 changes: 1 addition & 1 deletion src/gleam_stdlib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ inspect(Atom) when is_atom(Atom) ->
inspect(Any) when is_integer(Any) ->
erlang:integer_to_list(Any);
inspect(Any) when is_float(Any) ->
io_lib_format:fwrite_g(Any);
erlang:float_to_binary(Any, [short]);
inspect(Binary) when is_binary(Binary) ->
case inspect_maybe_utf8_string(Binary, <<>>) of
{ok, InspectedUtf8String} -> InspectedUtf8String;
Expand Down
Loading