org.thalia.bio.util
Class NumberFormat

java.lang.Object
  extended by org.thalia.bio.util.NumberFormat

public final class NumberFormat
extends java.lang.Object

Author:
jveyrier TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
NumberFormat()
           
 
Method Summary
static java.lang.String formatDouble(double d)
           
static double parseDouble(java.lang.String value)
          This method parse the given string to a double value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormat

public NumberFormat()
Method Detail

formatDouble

public static java.lang.String formatDouble(double d)
Parameters:
d -
Returns:

parseDouble

public static double parseDouble(java.lang.String value)
This method parse the given string to a double value. If the string is not valid Double.NaN is returned. Note that this method is 'coma'/'dot' tolerant.

Parameters:
value -
Returns: