About 14,500,000 results
Open links in new tab
  1. c++ - Converting floating point to fixed point - Stack Overflow

    If you're in Visual C++, experiment with the /fp:fast switch before even thinking about refactoring all your floating point to fixed point. This floating point model switch allows optimizations which can allow …

  2. Fixed point vs Floating point number - Stack Overflow

    May 5, 2014 · 4 The term ‘fixed point’ refers to the corresponding manner in which numbers are represented, with a fixed number of digits after, and sometimes before, the decimal point. With …

  3. Floating point versus fixed point: what are the pros/cons?

    Floating point type represents a number by storing its significant digits and its exponent separately on separate binary words so it fits in 16, 32, 64 or 128 bits. Fixed point type stores numbers...

  4. c++ - Fixed-size floating point types - Stack Overflow

    Mar 26, 2010 · 26 IEEE 754-compliant fixed-precision floating point numbers were introduced in C++23. Here's how to instantiate a 64-bit float:

  5. floating point - Float formatting in C++ - Stack Overflow

    Jan 21, 2013 · How do you format a float in C++ to output to two decimal places rounded up? I'm having no luck with setw and setprecision as my compiler just tells me they are not defined. cout << …

  6. Fixed Point Arithmetic in C Programming - Stack Overflow

    Apr 8, 2012 · Fixed-point has the same precision whatever the value (this can be an advantage in some cases), where floats precision is inversely proportional to the value magnitude (ie. the lower the …

  7. python - Limiting floats to two decimal points - Stack Overflow

    Jan 19, 2009 · These conversions occur in many different places: str () on floats and complex numbers; the float and complex constructors; numeric formatting; serializing and de-serializing floats and …

  8. How do I convert a floating point C code to fixed point?

    This will be slow, but you should initially build your code with floating-point support, then profile to see if there are just a few places that you need to convert to fixed-point to get sufficient performance.

  9. What's the best way to do fixed-point math? [closed]

    I need to speed up a program for the Nintendo DS which doesn't have an FPU, so I need to change floating-point math (which is emulated and slow) to fixed-point. How I started was I changed floats to …

  10. PL/1 fixed and float, dec and bin data types. Difference between dec ...

    Is internally representation in memory of fixed bin and fixed dec equal or different? And about float. What are magical float bin and float dec m numbers? For how many bytes they are? And is internally …