Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
epsilon
#include <iostream> #include <limits> #include <iomanip> #include <math.h> int main() { float x = sqrt(2.0f); double y = sqrt(2.0); auto z = x; (void)x; (void)y; // https://en.cppreference.com/w/cpp/types/numeric_limits/epsilon std::cout << std::setprecision(std::numeric_limits<decltype(z)>::max_digits10) << std::numeric_limits<decltype(z)>::epsilon(); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Sort array of 0's and 1's
cppPyClamInher
1
palindrome
p30
Hello world.c
Matrix
12535
Sample Code from Scott Meyer's Blog
Shultz_Lab1.CPP
Please log in to post a comment.