Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save roblav96/e31c03b223572b61aa61b742b4e1981d to your computer and use it in GitHub Desktop.
Save roblav96/e31c03b223572b61aa61b742b4e1981d to your computer and use it in GitHub Desktop.
[...document.querySelectorAll('input')].forEach(el => el.value = (Math.round((el.value * 0.875) * 100) / 100).toFixed(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment