summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorcremno <[email protected]>2015-02-13 09:33:03 +0100
committercremno <[email protected]>2015-02-13 09:33:03 +0100
commit6f893b5183450384e89b3d8f03f9ef32a7522624 (patch)
tree481913e69c91974e18c4e2355ef7778f9f0ae93d /src/codegen.c
parent789177c8fe6c3bcb3833e76f95ecbd41b43b83fd (diff)
downloadmruby-6f893b5183450384e89b3d8f03f9ef32a7522624.tar.gz
mruby-6f893b5183450384e89b3d8f03f9ef32a7522624.zip
re-implement mrb_float_to_str()
The new implementation is backwards incompatible, but I couldn't find any usage outside mruby and I also couldn't think of a different and good name. All ISO C99 printf conversion specifiers for floating point numbers and an optional precision are supported. It is largely based on code from the MIT licensed musl libc (http://www.musl-libc.org/) and its floating point printing is exact (unlike the current code behind Float#to_s).
Diffstat (limited to 'src/codegen.c')
0 files changed, 0 insertions, 0 deletions