TC Java
2010 Version

gov.nih.nlm.nls.tc.Util
Class DigitFormat

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Util.DigitFormat

public class DigitFormat
extends java.lang.Object

This class provides methods of format round off decimal related operations.

History:

Version:
V-2010
Author:
NLM Lexical Systems group

Constructor Summary
DigitFormat()
           
 
Method Summary
static java.text.DecimalFormat GetDecimalFormat(int roundOffDecimals)
          Get a decimal format by specify the round off decimals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitFormat

public DigitFormat()
Method Detail

GetDecimalFormat

public static java.text.DecimalFormat GetDecimalFormat(int roundOffDecimals)
Get a decimal format by specify the round off decimals

Parameters:
roundOffDecimals - the decimals to be round off
Returns:
a decimal format object

TC Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine