Skip to content

Conversation

sabiwara
Copy link
Contributor

Relates to #11220

Did a quick prop-based sanity check just to make sure there is no unexpected change in behavior / edge case:

# hangs forever
iex> for f <- StreamData.float(), Float.to_string(f) != :erlang.float_to_binary(f, [:short]), do: throw f

@josevalim
Copy link
Member

@sabiwara there are other occurrences of :io_lib_format.fwrite_g in the codebase, we should replace them all. :D

@sabiwara
Copy link
Contributor Author

@josevalim yes sorry, I thought I grepped it but I obviously missed. Will fix!

@sabiwara sabiwara force-pushed the erl-float-to-string branch from 50aa992 to 7da124a Compare October 31, 2023 15:33
@sabiwara sabiwara force-pushed the erl-float-to-string branch from 7da124a to ced0c3d Compare October 31, 2023 15:34
@sabiwara
Copy link
Contributor Author

Should be good now!

@sabiwara sabiwara merged commit ebbe71f into elixir-lang:main Oct 31, 2023
@sabiwara sabiwara deleted the erl-float-to-string branch October 31, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants