net.sf.retrotranslator.runtime.format
Class FloatingPointConversion
java.lang.Object
net.sf.retrotranslator.runtime.format.Conversion
net.sf.retrotranslator.runtime.format.NumericConversion
net.sf.retrotranslator.runtime.format.FloatingPointConversion
- Direct Known Subclasses:
- FloatingPointConversion.ComputerizedScientificConversion, FloatingPointConversion.DecimalConversion, FloatingPointConversion.GeneralScientificConversion
abstract class FloatingPointConversion
- extends NumericConversion
- Author:
- Taras Puchko
Method Summary |
protected static java.lang.StringBuilder |
appendZeros(java.lang.StringBuilder builder,
int count)
|
protected static void |
printComputerizedScientificNumber(FormatContext context,
boolean negative,
java.math.BigDecimal argument,
int precision)
|
protected static void |
printDecimalNumber(FormatContext context,
boolean negative,
java.math.BigDecimal argument,
boolean localized)
|
protected void |
printf(FormatContext context)
|
protected abstract void |
printf(FormatContext context,
boolean negative,
java.math.BigDecimal argument)
|
private void |
printf(FormatContext context,
double argument)
|
protected static java.math.BigDecimal |
round(java.math.BigDecimal decimal,
int shift)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatingPointConversion
FloatingPointConversion()
printf
protected abstract void printf(FormatContext context,
boolean negative,
java.math.BigDecimal argument)
printf
protected void printf(FormatContext context)
printf
private void printf(FormatContext context,
double argument)
printComputerizedScientificNumber
protected static void printComputerizedScientificNumber(FormatContext context,
boolean negative,
java.math.BigDecimal argument,
int precision)
printDecimalNumber
protected static void printDecimalNumber(FormatContext context,
boolean negative,
java.math.BigDecimal argument,
boolean localized)
appendZeros
protected static java.lang.StringBuilder appendZeros(java.lang.StringBuilder builder,
int count)
round
protected static java.math.BigDecimal round(java.math.BigDecimal decimal,
int shift)