float AxisData; //Stores output value from sensor ranging from 0-2047float Angle = asin((AxisData -1024.0)/1638.0); //Uses mfg equation to convert to degreeslcd.print(anglex,4); //Prints conversion to lcd
On the arduino reference on floats, it suggests, to the best of my understanding, that a float can't exceed approximately 3.4.
Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16