Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double x = 7;
- bool result = x == 6.9999999999999999;
- cout << "x == 6.9999999999999999 : " << (result ? "true" : "false") << endl;
- return 0;
- }
- // result:
- // x == 6.9999999999999999 : true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement