TMvK
  • Home

toFixed

A collection of 1 post

toFixed

Quickie: JavaScript decimal multiplication

Another oddity of JavaScript I found. Multiplying decimal numbers can be tricky (or malicious?). Order of numbers can matter in multiplication. // order #1 135*1.15*10.5 // = 1630.125 // order #2 1.

TvK
TMvK © 2025
Latest Posts Ghost