summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-29 21:56:41 +0900
committerMasaki Muranaka <[email protected]>2013-03-29 22:19:26 +0900
commitf82ae7653a53946fa14ed7a334b686265dc63dd3 (patch)
treea954b6e7db8c914a078a9ae2447a5f8beebc7ff7 /include
parent710f6252548f4a0eaf16a7b0d4d973a50e4520c0 (diff)
downloadmruby-f82ae7653a53946fa14ed7a334b686265dc63dd3.tar.gz
mruby-f82ae7653a53946fa14ed7a334b686265dc63dd3.zip
Change the second argument of mrb_flo_to_str().
Export mrb_flo_to_str() as API.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/numeric.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h
index 6d90fbad7..615fdfe57 100644
--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -16,6 +16,8 @@ extern "C" {
#define FIXABLE(f) (POSFIXABLE(f) && NEGFIXABLE(f))
mrb_value mrb_flo_to_fixnum(mrb_state *mrb, mrb_value val);
+mrb_value mrb_flo_to_str(mrb_state *mrb, mrb_value flo, int max_digit);
+
mrb_value mrb_fix2str(mrb_state *mrb, mrb_value x, int base);
mrb_value mrb_fixnum_plus(mrb_state *mrb, mrb_value x, mrb_value y);