I ran into the need for some math routines in the Tokenizer, so I went ahead and implemented the full set of math methods in Int and Real I think we ought to support (I left some of the obscure Java methods out which it looked like .NET didn't include). Let me know if you think anything important was omitted.
Int
{
Int abs()
Int min(Int that)
Int max(Int that)
}
Real
{
static Real e()
static Real pi()
Real abs()
Real min(Real that)
Real max(Real that)
Real ceil()
Real floor()
Real round()
Real exp()
Real log()
Real log10()
Real pow(Real pow)
Real sqrt()
Real acos()
Real asin()
Real atan()
static Real atan2(Real y, Real x)
Real cos()
Real cosh()
Real sin()
Real sinh()
Real tan()
Real tanh()
Real toDegrees()
Real toRadians()
}
brian Sun 28 May 2006
I ran into the need for some math routines in the Tokenizer, so I went ahead and implemented the full set of math methods in Int and Real I think we ought to support (I left some of the obscure Java methods out which it looked like .NET didn't include). Let me know if you think anything important was omitted.