Ruby::Marshal::Float
Inherits Ruby::Marshal::StreamObject < Reference < Object
“f” represents a Float object. Following the type byte is a byte sequence containing the float value. The following values are special:
“inf” - Positive infinity “-inf” - Negative infinity “nan” - Not a Number
Otherwise the byte sequence contains a C double (loadable by strtod(3)). Older minor versions of Marshal also stored extra mantissa bits to ensure portability across platforms but 4.8 does not include these.
Constructors
new(stream : Bytes)
SourceInstance methods
data
Source