https://www.cppbetterexplained.com/posts/cpp-double-max/