Class Float64Value


  • public class Float64Value
    extends NumberValue<java.lang.Double>
    Implements an SGr value containing a 64-bit floating point value.
    • Method Detail

      • setValue

        protected void setValue​(double value)
        Description copied from class: NumberValue
        Updates the numeric value.
        Specified by:
        setValue in class NumberValue<java.lang.Double>
        Parameters:
        value - a double value
      • asArray

        public Float64Value[] asArray()
        Description copied from class: Value
        Gets the value as array.
        Specified by:
        asArray in class Value
        Returns:
        an array of Value
      • absValue

        public void absValue()
        Description copied from class: Value
        Sets the instance's value to its absolute value, if possible.
        Specified by:
        absValue in class Value
      • roundToInt

        public void roundToInt()
        Description copied from class: Value
        Rounds the instance's value to the nearest integer, if possible.
        Specified by:
        roundToInt in class Value
      • of

        public static Float64Value of​(double value)
        Creates a new instance.
        Parameters:
        value - the double value
        Returns:
        an instance of Float64Value