< prev index next >

src/java.base/share/classes/sun/misc/FloatingDecimal.java

Print this page




 137          * Appends a floating point value to an <code>Appendable</code>.
 138          * @param buf The <code>Appendable</code> to receive the value.
 139          */
 140         public void appendTo(Appendable buf);
 141 
 142         /**
 143          * Retrieves the decimal exponent most closely corresponding to this value.
 144          * @return The decimal exponent.
 145          */
 146         public int getDecimalExponent();
 147 
 148         /**
 149          * Retrieves the value as an array of digits.
 150          * @param digits The digit array.
 151          * @return The number of valid digits copied into the array.
 152          */
 153         public int getDigits(char[] digits);
 154 
 155         /**
 156          * Indicates the sign of the value.
 157          * @return <code>value < 0.0</code>.
 158          */
 159         public boolean isNegative();
 160 
 161         /**
 162          * Indicates whether the value is either infinite or not a number.
 163          *
 164          * @return <code>true</code> if and only if the value is <code>NaN</code>
 165          * or infinite.
 166          */
 167         public boolean isExceptional();
 168 
 169         /**
 170          * Indicates whether the value was rounded up during the binary to ASCII
 171          * conversion.
 172          *
 173          * @return <code>true</code> if and only if the value was rounded up.
 174          */
 175         public boolean digitsRoundedUp();
 176 
 177         /**




 137          * Appends a floating point value to an <code>Appendable</code>.
 138          * @param buf The <code>Appendable</code> to receive the value.
 139          */
 140         public void appendTo(Appendable buf);
 141 
 142         /**
 143          * Retrieves the decimal exponent most closely corresponding to this value.
 144          * @return The decimal exponent.
 145          */
 146         public int getDecimalExponent();
 147 
 148         /**
 149          * Retrieves the value as an array of digits.
 150          * @param digits The digit array.
 151          * @return The number of valid digits copied into the array.
 152          */
 153         public int getDigits(char[] digits);
 154 
 155         /**
 156          * Indicates the sign of the value.
 157          * @return {@code value < 0.0}.
 158          */
 159         public boolean isNegative();
 160 
 161         /**
 162          * Indicates whether the value is either infinite or not a number.
 163          *
 164          * @return <code>true</code> if and only if the value is <code>NaN</code>
 165          * or infinite.
 166          */
 167         public boolean isExceptional();
 168 
 169         /**
 170          * Indicates whether the value was rounded up during the binary to ASCII
 171          * conversion.
 172          *
 173          * @return <code>true</code> if and only if the value was rounded up.
 174          */
 175         public boolean digitsRoundedUp();
 176 
 177         /**


< prev index next >