to_string() broken
-
Philipp Pirozhkov
seems that lazy flattening doesn't work properly
>> (1/4).to_list() => [[48,46,50,53,48,48,48,48]] >> (1/4).to_list().to_string() exception error: bad argument in function list_to_binary/1 called as list_to_binary([{list,{[],"0.250000"}}]) in call from reia_list:funcall/3 in call from erl_eval:do_apply/5 in call from eval_shim:exprs/3 in call from reia_erl:erl_funcall/3 in call from 'Eval':exprs/2 -
Tony Arcieri
- State changed from new to resolved
This is a regression in Numeric#to_string() for floats, from commit 5ee824b1eabfacec6667091583043349d88f3d68 by Jared Kuolt.
I've corrected the problem and added additional tests to prevent future regressions.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.