Class OtpErlangFloat

All Implemented Interfaces:
Serializable, Cloneable

public class OtpErlangFloat extends OtpErlangDouble
Provides a Java representation of Erlang floats and doubles.
See Also:
  • Constructor Details

    • OtpErlangFloat

      public OtpErlangFloat(float f)
      Create an Erlang float from the given float value.
    • OtpErlangFloat

      Create an Erlang float from a stream containing a float encoded in Erlang external format.
      Parameters:
      buf - the stream containing the encoded value.
      Throws:
      OtpErlangDecodeException - if the buffer does not contain a valid external representation of an Erlang float.
      OtpErlangRangeException - if the value cannot be represented as a Java float.