class Ruby::Marshal::Float

Overview

“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.

Defined in:

ruby-marshal/stream_objects/float.cr

Constructors

Instance Method Summary

Instance methods inherited from class Ruby::Marshal::StreamObject

size : Int32 size, stream_size stream_size

Constructor methods inherited from class Ruby::Marshal::StreamObject

new(size : Int32) new

Constructor Detail

def self.new(stream : Bytes) #

[View source]

Instance Method Detail

def data : Float64 #

[View source]