Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
numeric.h
Go to the documentation of this file.
1 /*
2 ** mruby/numeric.h - Numeric, Integer, Float, Fixnum class
3 **
4 ** See Copyright Notice in mruby.h
5 */
6 
7 #ifndef MRUBY_NUMERIC_H
8 #define MRUBY_NUMERIC_H
9 
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
13 
14 #define POSFIXABLE(f) ((f) <= MRB_INT_MAX)
15 #define NEGFIXABLE(f) ((f) >= MRB_INT_MIN)
16 #define FIXABLE(f) (POSFIXABLE(f) && NEGFIXABLE(f))
17 
19 mrb_value mrb_flo_to_str(mrb_state *mrb, mrb_value flo, int max_digit);
20 
22 
27 
28 #if defined(__cplusplus)
29 } /* extern "C" { */
30 #endif
31 
32 #endif /* MRUBY_NUMERIC_H */