sun.misc
Class FormattedFloatingDecimal
java.lang.Object
sun.misc.FormattedFloatingDecimal
public class FormattedFloatingDecimal
- extends Object
FormattedFloatingDecimal
public FormattedFloatingDecimal(double d)
FormattedFloatingDecimal
public FormattedFloatingDecimal(double d,
int precision,
FormattedFloatingDecimal.Form form)
FormattedFloatingDecimal
public FormattedFloatingDecimal(float f)
FormattedFloatingDecimal
public FormattedFloatingDecimal(float f,
int precision,
FormattedFloatingDecimal.Form form)
toString
public String toString()
- Description copied from class:
Object
- toString creates a printable string that represents this object
for debugging purposes.
The default implementation returns getClass().getName() + '@' +
Integer.toHexString(hashCode()).
- Overrides:
toString in class Object
- Returns:
- a string identifying this object.
toJavaFormatString
public String toJavaFormatString()
getExponent
public int getExponent()
getExponentRounded
public int getExponentRounded()
getChars
public int getChars(char[] result)
appendTo
public void appendTo(Appendable buf)
readJavaFormatString
public static FormattedFloatingDecimal readJavaFormatString(String in)
throws NumberFormatException
- Throws:
NumberFormatException
doubleValue
public double doubleValue()
floatValue
public float floatValue()
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.