Files
test/test_double_precision.cpp
Vahagn Khachatryan a730bde647 Linux test merged.
2013-02-22 23:48:24 +04:00

21 lines
504 B
C++

#include <iostream>
#include <iomanip>
int main ( void )
{
volatile double d = 0.00000001;
volatile double a = 90;
volatile double b = a + d;
volatile double c = b - a;
std::cout << std::setprecision(15) << "a = " << a << std::endl;
std::cout << std::setprecision(15) << "b = " << b << std::endl;
std::cout << std::setprecision(15) << "c = " << c << std::endl;
std::cout << std::setprecision(15) << "d = " << d << std::endl;
std::cout << "b == d -> " << (b == d) << std::endl;
return 0;
}