Comments (2)
Indeed. To be clear (and for future readers), fpm's fixed-point type behaves like a floating-point type without denormalization so according to the letter of the spec, the floating-point rule for min()
doesn't apply.
You could argue about the spirit of the spec and that fpm is supposed to pretend to be a float
, but it seems that the reason the rule exists is to let users know when to expect a loss of precision when moving from normal into subnormal floating-point numbers. With fpm, you don't have this problem and you always have to be wary of precision when compared to floats.
from fpm.
Who can read...
Sorry, now I get it.
from fpm.
Related Issues (20)
- Conversion of max() and lowest() to float HOT 6
- Question about having to resort to floats for initialization. HOT 1
- Provide a way to serialize fpm::fixed HOT 2
- How to convert from fixed to float or int? HOT 1
- Avoid using floating point arithmetic to compute static_cast<double>(fpm::fixed_16_16) HOT 6
- Unable to compile when minwindef.h is (implicitly) included before fixed.hpp HOT 2
- Support for Shift Operators HOT 5
- std::numeric_limits<>::has_denorm shall be of type float_denorm_style, not bool
- Please allow to use the external libfixmath HOT 3
- Feature Proposal: optionally disable rounding HOT 3
- Support fraction-only unsigned numbers
- Cannot result in a constant expression errors HOT 1
- Is there a way to initialize a fpm value from the string expression of a float number? HOT 3
- Use types larger than 32bit HOT 5
- Include a link in your docs to this GitHub HOT 1
- [feature request] include a sin() that accept degrees instead of radians HOT 3
- Docs bug? Signed vs Unsigned integer types HOT 1
- Docs: mention rounding mode(s)?
- Is Division of two fixed point numbers implemented? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpm.