diff options
| author | cremno <[email protected]> | 2015-02-13 09:33:03 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2015-02-13 09:33:03 +0100 |
| commit | 6f893b5183450384e89b3d8f03f9ef32a7522624 (patch) | |
| tree | 481913e69c91974e18c4e2355ef7778f9f0ae93d /include/mruby.h | |
| parent | 789177c8fe6c3bcb3833e76f95ecbd41b43b83fd (diff) | |
| download | mruby-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 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions
