diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1520,6 +1520,12 @@ flo_cmp(VALUE x, VALUE y) return rb_dbl_cmp(a, b); } +int +rb_float_cmp(VALUE x, VALUE y) +{ + return NUM2INT(flo_cmp(x, y)); +} + /* * call-seq: * float > real -> true or false |