summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-03-08 21:01:04 -0700
committerJeremy Evans <code@jeremyevans.net>2020-03-09 06:39:42 -0700
commitecef163cf9bbdffcf1466addc39daa92084d6b53 (patch)
treed553e3fc4db9c1d770d95ff54edd3814cd31d7f3
parentd019cac08a3eb77d71bbe47f9b651088ff07ac19 (diff)
Remove Float::ROUNDS
Fixes [Bug #16044]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2953
-rw-r--r--numeric.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/numeric.c b/numeric.c
index c880199148..b41838229f 100644
--- a/numeric.c
+++ b/numeric.c
@@ -44,9 +44,6 @@
#ifndef FLT_RADIX
#define FLT_RADIX 2
#endif
-#ifndef FLT_ROUNDS
-#define FLT_ROUNDS 1
-#endif
#ifndef DBL_MIN
#define DBL_MIN 2.2250738585072014e-308
#endif
@@ -5703,23 +5700,6 @@ Init_Numeric(void)
rb_undef_method(CLASS_OF(rb_cFloat), "new");
/*
- * Deprecated, do not use.
- *
- * Represents the rounding mode for floating point addition at the start time.
- *
- * Usually defaults to 1, rounding to the nearest number.
- *
- * Other modes include:
- *
- * -1:: Indeterminable
- * 0:: Rounding towards zero
- * 1:: Rounding to the nearest number
- * 2:: Rounding towards positive infinity
- * 3:: Rounding towards negative infinity
- */
- rb_define_const(rb_cFloat, "ROUNDS", INT2FIX(FLT_ROUNDS));
- rb_deprecate_constant(rb_cFloat, "ROUNDS");
- /*
* The base of the floating point, or number of unique digits used to
* represent the number.
*