예제 #1
0
파일: numeric.c 프로젝트: EasyRPG/mruby
static mrb_value
flo_to_s(mrb_state *mrb, mrb_value flt)
{
#ifdef MRB_USE_FLOAT
  return mrb_flo_to_str(mrb, flt, 7);
#else
  return mrb_flo_to_str(mrb, flt, 14);
#endif
}
예제 #2
0
파일: numeric.c 프로젝트: kkkkkt/mruby
static mrb_value
flo_to_s(mrb_state *mrb, mrb_value flt)
{
  return mrb_flo_to_str(mrb, mrb_float(flt));
}