net.logAnalyzer.utils
Class MathUtils

java.lang.Object
  extended bynet.logAnalyzer.utils.MathUtils

public class MathUtils
extends java.lang.Object

A simple toolkit to manipulate numbers.

Version:
1.0
Author:
Karim REFEYTON

Method Summary
static double truncate(double value, int decimals)
          Truncates a double with the specified number of decimals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

truncate

public static double truncate(double value,
                              int decimals)
Truncates a double with the specified number of decimals.

Parameters:
value - double to truncate.
decimals - Number of decimals.
Returns:
Truncated double.


Copyright © 2006 null. All Rights Reserved.