Mistake in mathematical calculation (floating point round off errors)

By design Issue #927922

Details

Created
Oct 8, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

  1. Write JavaScript or use developer tools
  2. try to multiple 5.1 with 100 (5.1*100)
  3. Expected 510 Actual 509.99999999999994

Expected Results:

Result of multiplication of 5.1*100 comes out to be 510

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Rico M.”

      Changed Title from “Mistake in mathematical calculation” to “Mistake in mathematical calculation (floating point round off errors)”

      Changed Assigned To from “Rico M.” to “IE F.”

      Changed Status to “By design”

    You need to sign in to your Microsoft account to add a comment.

    Sign in