on-internet
← Community

A more accurate data type than float or double?

Stack Overflow ·

Does C++ have a more accurate data type than float or double, or do I just have to settle for the fact that my calculations will be off? EDIT: As Mr. Lister has pointed out, my question is regarding the precision. It's a bit frustrating when you add two floats/doubles together and the number is off half the time comparing to the calculation done by hand.

Comments

Sign in or sign up to comment and upvote.

No comments yet.