Header: mruby/numeric.h

Function Summary collapse

Define Summary

#define MRUBY_NUMERIC_H
#define TYPED_POSFIXABLE

Numeric class and it’s sub-classes.

Integer, Float and Fixnum

#define TYPED_NEGFIXABLE
#define TYPED_FIXABLE
#define POSFIXABLE
#define NEGFIXABLE
#define FIXABLE
#define FIXABLE_FLOAT
#define __has_builtin
#define MRB_HAVE_TYPE_GENERIC_CHECKED_ARITHMETIC_BUILTINS
#define WBCHK
#define MRB_UINT_MAKE2
#define MRB_UINT_MAKE
#define mrb_uint
#define MRB_INT_OVERFLOW_MASK
#define MRB_FLT_RADIX
#define MRB_FLT_MANT_DIG
#define MRB_FLT_EPSILON
#define MRB_FLT_DIG
#define MRB_FLT_MIN_EXP
#define MRB_FLT_MIN
#define MRB_FLT_MIN_10_EXP
#define MRB_FLT_MAX_EXP
#define MRB_FLT_MAX
#define MRB_FLT_MAX_10_EXP

Function Details

mrb_value mrb_flo_to_fixnum(mrb_state * mrb, mrb_value val)

mrb_value mrb_fixnum_to_str(mrb_state * mrb, mrb_value x, mrb_int base)

mrb_value mrb_float_to_str(mrb_state * mrb, mrb_value x, const char * fmt)

mrb_float mrb_to_flo(mrb_state * mrb, mrb_value x)

mrb_value mrb_int_value(mrb_state * mrb, mrb_float f)

mrb_value mrb_num_plus(mrb_state * mrb, mrb_value x, mrb_value y)

mrb_value mrb_num_minus(mrb_state * mrb, mrb_value x, mrb_value y)

mrb_value mrb_num_mul(mrb_state * mrb, mrb_value x, mrb_value y)