method

to_s

ruby latest stable - Class: Float
to_s()
public

Returns a string containing a representation of self. As well as a fixed or exponential form of the float, the call may return NaN, Infinity, and -Infinity.