c++ floating point problem #135328
Unanswered
Marvinschaferone43
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Show & Tell
Body
There is a problem with c++ and the way it handles floating point variables. There are of course many solutions but I was unable to quickly and easily implement an of them so I wrote a class that fixes that issue by using fractions if any one is interested in it I made it public on my github under fractions the code seems to be stable just copy the header and cpp files named fraction include them in your program and use the fraction class for your floating point number I tried to fully implement The class any questions message me.
Beta Was this translation helpful? Give feedback.
All reactions