[poincare/zoom] Float litterals

Change-Id: Ifea5f356b9cee271c43b3d9b9168fd38db78d87a
This commit is contained in:
Gabriel Ozouf
2020-11-26 17:37:51 +01:00
committed by EmilieNumworks
parent ddfde60982
commit 2ba1941270
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ static bool DoesNotOverestimatePrecision(float dx, float y1, float y2, float y3)
* too noisy to be be of any value. */
float yMin = std::min(y1, std::min(y2, y3));
float yMax = std::max(y1, std::max(y2, y3));
constexpr float maxPrecision = 2 * FLT_EPSILON;
constexpr float maxPrecision = 2.f * FLT_EPSILON;
return (yMax - yMin) / std::fabs(dx) > maxPrecision;
}

View File

@@ -7,7 +7,7 @@ using namespace Poincare;
// When adding the graph window margins, this ratio gives an orthonormal window
constexpr float NormalRatio = 0.442358822;
constexpr float StandardTolerance = 10 * FLT_EPSILON;
constexpr float StandardTolerance = 10.f * FLT_EPSILON;
class ParametersPack {
public: