mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare/zoom] Float litterals
Change-Id: Ifea5f356b9cee271c43b3d9b9168fd38db78d87a
This commit is contained in:
committed by
EmilieNumworks
parent
ddfde60982
commit
2ba1941270
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user