Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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 mathematical functions.

Since:
Ptolemy II 4.1
Version:
$Id: Utilities.java,v 1.9 2005年07月08日 19:59:29 cxh Exp $
Author:
Haiyang Zheng
Accepted Rating:
Red (hyzheng)
Proposed Rating:
Red (hyzheng)

Constructor Summary
Utilities()
Method Summary
static double round(double value, int 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,
 int 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.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /