Global Sources
EE Times-India
 
 
EDA/IP  

Fixed-point math in C

Posted: 01 Apr 2001  Print Version  Bookmark and Share Subscribe

Keywords: C language  fixed-point math algorithm  integer functions 

[Summary of tips] When adding, subtracting, or performing logical comparisons on two variables with different-resolution fixed-point numbers, first scale the different resolution number to the same resolution as the result. Listing 4 shows a small routine that performs some mixed operations and prints the results. This routine performs the same ......
Please login or register with us to view this article>>
 First Page Previous Page 1 • 2 • 3
 
 

Comment on "Fixed-point math in C"
Comments:  
*  You can enter [0] more charecters.
*Verify code:
 
Highly Recommended Application Notes

Max's Cool Beans

Clive Maxfield Strange modes of transport and other "stuff"

Someone just pointed me at a YouTube video that claims to show the world's first e-powered multicopter flight...

 

Go to top             Connect on Facebook      Follow us on Twitter      Follow us on Orkut