"JamesB" <ja***@spamiscrappy.puffle.co.spam.uk> schrieb:
For instance, math.sin(1) is returning 0.84147098.... whereas windows calc
doing 1 then pressing sin gives me 0.017452406.....
Where am I going wrong? Or can't VB add up?
'Math.Sin' is a .NET Framework function. Like in VB6, mathematical
functions deal with radians. You'll may want to convert them to degrees
using the formula presented at
<URL:http://www.tmt.com/helphtml/radtodeg_func.htm>.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>