End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Float#to_f
float.to_f → self
numeric.c
View on GitHub ↗
static VALUE
flo_to_f(VALUE num)
{
return num;
}
Since float is already a Float, returns self.