[email protected] wrote:
> 
> input:
> Log.v("sintest",String.valueOf(Math.sin(90)));
> 
> output:
> V/sintest (16869): 0.8939966636005579
> 
> huh? I realise I'm probably about to invite explanations about
> floating points and subsequent brain explosions, but could anyone tell
> me what's going on here?

The parameter to sin() is in radians, not degrees. The sine of 90
degrees is 1. The sine of 90 radians is approximately 0.8939966636005579.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to