mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3d53864991
Use uscale-based shortest() to compute the minimal decimal string that uniquely identifies each double. This guarantees perfect round-trip (parse(to_s(x)) == x) while keeping output concise (e.g. 0.1 prints as "0.1", not "0.10000000000000001"). Co-authored-by: Claude <noreply@anthropic.com>