Shortening float constant to 8 digits to remove Prone warning
Change removes Prone warning: [FloatingPointLiteralPrecision] Floating point literal loses precision float start = 0.36787944117f; // 1/e == exp(-1) ^ (see http://errorprone.info/bugpattern/FloatingPointLiteralPrecision) Did you mean 'float start = 0.36787945f;'? Bug: Change-Id: Ide3f12ff1bbe9698efc7fba72cf5a4ddf812ff6d Reviewed-on: https://chromium-review.googlesource.com/793512Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#520156}
Showing
Please register or sign in to comment