You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my code locally, or in codepen it returns the required output. When I run in on the challenge page it returns a different result (I am logging output to console to see the results).
The result in the freecodecamp test is:
[["PENNY",0.49000000000000027]]
@Shooshte This is likely caused by how JS (and possibly even FCC and codepen) handles floating point integers. You can read more here: http://floating-point-gui.de/.
While I'm not sure how to remedy it for your code, someone in the HelpJavascript may be able to help.
Exact Change
https://www.freecodecamp.com/challenges/exact-change
Issue Description
When I run my code locally, or in codepen it returns the required output. When I run in on the challenge page it returns a different result (I am logging output to console to see the results).
The result in the freecodecamp test is:
[["PENNY",0.49000000000000027]]
The result in codepen is:
[["QUARTER", 0.5]]
Browser Information
MacOs El Capitan, Latest Google Chrome, Desktop
Your Code
The text was updated successfully, but these errors were encountered: