Math
Posted: Sun Feb 10, 2008 9:56 pm
When I try something like:
(scale is a Double)
I get errors like:
Do I need to do some sort of type casting or overloading that I'm overlooking?
print Math.sin(Math.pi / scale)
(scale is a Double)
I get errors like:
Cannot apply SLASH to Double.
Cannot find a definition for "pi" in "Math".
Do I need to do some sort of type casting or overloading that I'm overlooking?