|
Post by hartnell on Dec 10, 2006 8:57:03 GMT -5
A math object for more complicated math stuff.
math.Round - rounds a number in the traditional way
math.RoundUp - rounds a number up
math.RoundDown - rounds a number down
math.DegreeWrap(curr,add) - wraps degrees. For example, if I have an object rotated to 340 degrees, and I rotate it 40 more, it needs to be wrapped to 0. curr is the current degrees, add is the added degrees.
-hartnell
|
|
|
Post by hartnell on Jan 4, 2007 18:18:30 GMT -5
Thanks for the Math Object. I plan on making use of it soon. More tutorials coming. And, it should help out matthew too.
-hartnell
|
|
|
Post by hartnell on Feb 7, 2007 16:55:37 GMT -5
I was working on the Generic BASIC documentation for ABS and came up with these :
math.IsPositive and math.IsNegative
VBSCript may have these already. However, it would be useful to have them in the math object.
also
math.IsNumber math.IsReal math.IsNotNumber math.IsNotReal
-hartnell
|
|
|
Post by u9 on Feb 8, 2007 19:27:55 GMT -5
IsNumber and IsNotNumber are mutually exclusive. If one of them is true then the other is false. The same for IsReal and IsNotReal. So it should suffice to include only one of them.
But I do believe these in fact are in VB-script already.
|
|