jump to navigation

Númeric precision in javascript September 26, 2006

Posted by maxmil in : javascript , trackback

Due the the limited number of bytes that javascript uses to store numbers certain decimals are not stored exactly.

For example try this:

alert(157.26+0.04)

Thus for númeric precision rounding should always be aplied to and mathematical operation.

Comments»

no comments yet - be the first?