MathUtils::toInt()

Michael Daumling mdaeumli at adobe.com
Tue Jun 10 06:47:53 PDT 2008


Hi all,

Is there any good reason why MathUtils::toInt() returns a double?

Date routines use the value from above method as double, but StringClass
converts the result back to an integer, which I think is an unnecessary
double->int conversion. Rather have the Date routines convert en integer
result into a double, I'd say, where the performance hit is not as
bad...

Michael
 


More information about the Tamarin-devel mailing list