summaryrefslogtreecommitdiff
path: root/tests/precision.cpp
blob: a1ab1f6c02fce47e5c5bb3987b848096f53fd5c6 (plain)
1
2
3
4
5
6
7
8
#include <cfloat>

int main() {
	cout << "Mode: " << FLT_EVAL_METHOD << endl;
	double a = atof("1.2345678");
	double b = a*a;
	cout << b - 1.52415765279683990130 << '\n';
}