PDA

View Full Version : Floating Point calculations in PBP



uuq1
- 20th June 2005, 04:12
I am trying to find the angle between two vectors using the cos function which (mathematically) result in a floating variable. I am having the following problems:
1) How to save the result in a varaible.
2) How to send the result to another microcontroller using serial methods.

uuq

Dwayne
- 20th June 2005, 15:08
Hello UUq,

Try looking here for Floating point:
http://www.melabs.com/resources/fp.htm

Dwayne