ptolemy.math
Class Utilities

java.lang.Object
  extended byptolemy.math.Utilities

public class Utilities
extends java.lang.Object

This class provides a utilities library that includes a set of mathematics functions.

Since:
Ptolemy II 4.1
Version:
$Id: Utilities.java,v 1.1.2.1 2004/07/31 01:22:34 cxh Exp $
Author:
Haiyang Zheng
Accepted Rating:
Red (hyzheng)
Proposed Rating:
Red (hyzheng)

Constructor Summary
Utilities()
           
 
Method Summary
static double round(double value, double precision)
          Given a double value, return a new double with precision as given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

round

public static double round(double value,
                           double precision)
Given a double value, return a new double with precision as given.

Parameters:
value - The double value.
precision - The precision.
Returns:
A double value with the given precision.