Download c++ - Converting floating point to fixed point - Stack Overflow book pdf free download link or read online here in PDF. Read online c++ - Converting floating point to fixed point - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
A cast from float to integer will throw away the fractional portion so if you want to keep that fraction around as fixed point then you just multiply the float before casting it. The below code will not check for overflow mind you. If you want 16:16. double f = 1.2345; int n; n=(int)(f*65536); if you want 24:8
Read : c++ - Converting floating point to fixed point - Stack Overflow pdf book online Select one of servers for direct link: |
---|