JavaScript 52 bit Mantissa
Shows the loss of the LSB once the threshold is passed
by subskybox
JavaScript
//JavaScript 52 bit Mantissa
document.write(Math.pow(2,52)+1-Math.pow(2,52)); //should be 1
document.write("<br/>");
document.write(Math.pow(2,53)+1-Math.pow(2,53)); //should be 1
document.write("<br/>");
document.write(Math.pow(2,53)+2-Math.pow(2,53)); //should be 2
document.write("<br/>");
document.write(Number.MAX_VALUE);