Comments (3)
I can't either, but as already written, this is more for the sake of completeness. As a user, i would expect the fixed point data type to give me the same possibilities as the integrated data types. Whether this can be used in a useful way or not should, in my opinion, also be the decision of the user himself. I would simply give him the possibility to do so.
from fixedpointsarduino.
Is there a genuinely good reason for provding postfix operators? I can't think of one offhand.
from fixedpointsarduino.
Trying to provide capabilities similar to the integral/arithmetic types is a fair point.
Thinking back, I think the only reason I provided the prefix versions in the first place was because the floating point types support them.
Chances are they won't get used anyway since it seems they don't get used with the floating point types very often.
from fixedpointsarduino.
Related Issues (20)
- Support the use of volatile HOT 2
- Add more integer cast operators HOT 2
- Add bitshift operators HOT 6
- Replace use of void in zero-parameter functions
- Use of 'inline' in 'RawType' is redundant
- Provide trigonometry functions HOT 1
- Disable random number functionality for non-AVR boards
- Add random number support for other board targets
- Update the dates on all licence headers
- Replace use of LargerType in constructors with ShiftType HOT 1
- Fix shift overflow bug in preincrement and predecrement operators
- Consider replacing some member functions and operators with free functions
- Consider providing constants in a separate namespace
- Provide formatting and printing functions
- Consider providing templates implementing other ways of expressing fixed points
- Add template aliases SQ and UQ in FixedPointsCommon
- Investigate the potential of adding specalisations for fixed points with zero-width fractions
- Make casting negative numbers more predictable. HOT 2
- Converting to float provides an incorrect result for certain types.
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 fixedpointsarduino.