Why is there a difference in behavior when rounding 1.499999 as a float, double, and long double? C++
In this particular instance I am rounding 1.49999 using std::round with float, double, and long double. Here is the code:
In this particular instance I am rounding 1.49999 using std::round with float, double, and long double. Here is the code: