1 Description: system: set second-largest-FP from std::numeric_limits
2 System::get_second_largest <(float|double)> is as transportable as
3 reinterpret_cast , that is, NOT. As suggested in gsltmplt.web ,
4 it is replaced with std::numeric_limits<(float|double)>::max() .
6 Author: Jerome Benoit <calculus@rezozer.net>
7 Last-Update: 2015-11-23
11 @@ -1032,10 +1032,20 @@
12 @<Print version, copyright, and license information@>;
15 - MAX_REAL = System::get_second_largest<float>(FLT_MAX, false);
18 + System::get_second_largest<float>(FLT_MAX, false);
20 + std::numeric_limits<float>::max();
22 else if (ldf_real_double)
23 - MAX_REAL = System::get_second_largest<double>(DBL_MAX, false);
27 + System::get_second_largest<double>(DBL_MAX, false);
29 + std::numeric_limits<double>::max();
32 MAX_REAL_SQRT = sqrt(MAX_REAL);
34 cerr.setf(ios::fixed, ios::floatfield);