@@ -198,11 +198,13 @@ public int signum() {
198
198
}
199
199
200
200
@ Override
201
+ @ JRubyMethod (name = "negative?" )
201
202
public IRubyObject isNegative (ThreadContext context ) {
202
203
return context .runtime .newBoolean (signum () < 0 );
203
204
}
204
205
205
206
@ Override
207
+ @ JRubyMethod (name = "positive?" )
206
208
public IRubyObject isPositive (ThreadContext context ) {
207
209
return context .runtime .newBoolean (signum () > 0 );
208
210
}
@@ -232,7 +234,7 @@ public static IRubyObject induced_from(ThreadContext context, IRubyObject recv,
232
234
/** flo_to_s
233
235
*
234
236
*/
235
- @ JRubyMethod (name = "to_s" )
237
+ @ JRubyMethod (name = { "to_s" , "inspect" } )
236
238
@ Override
237
239
public IRubyObject to_s () {
238
240
final Ruby runtime = getRuntime ();
@@ -373,7 +375,7 @@ public IRubyObject op_div(ThreadContext context, double other) { // don't overri
373
375
/** flo_quo
374
376
*
375
377
*/
376
- @ JRubyMethod (name = "quo" )
378
+ @ JRubyMethod (name = { "quo" , "fdiv" } )
377
379
public IRubyObject quo (ThreadContext context , IRubyObject other ) {
378
380
return numFuncall (context , this , sites (context ).op_quo , other );
379
381
}
@@ -474,7 +476,7 @@ public IRubyObject op_pow19(ThreadContext context, IRubyObject other) {
474
476
/** flo_eq
475
477
*
476
478
*/
477
- @ JRubyMethod (name = "==" , required = 1 )
479
+ @ JRubyMethod (name = { "==" , "===" } , required = 1 )
478
480
@ Override
479
481
public IRubyObject op_equal (ThreadContext context , IRubyObject other ) {
480
482
if (Double .isNaN (value )) {
0 commit comments