Round
ptolemy.actor.lib.conversions.Round

Produce an output token on each firing with a value that is equal to the specified rounded value of the input. The input type is DoubleToken. The output type is IntToken. The functions are a subset of those in the java.lang.Math class. They are: If the argument is NaN, then the result is NaN. The default is "round".

Author(s): C. Fong
Version:$Id: Round.java,v 1.33 2005/10/28 20:15:47 cxh Exp $
Pt.Proposed Rating:Green (chf)
Pt.Accepted Rating:Green (janneck)