Skip to content Skip to sidebar Skip to footer
Showing posts with the label Floating Point

Tolocalestring, Percentages, And Firefox 38

I'm trying to format a percentage to have three significant figures. I'd like a fairly smal… Read more Tolocalestring, Percentages, And Firefox 38

Javascript Float Subtract

I was wondering how can I subtract two negative Floating-Point numbers in javascript. I tried: aler… Read more Javascript Float Subtract

Why Am I Seeing Inexact Floating-point Results In Ecmascript / Actionscript 3?

Hey all, let's jump straight to a code sample to show how ECMAScript/JavaScript/AS3 can't d… Read more Why Am I Seeing Inexact Floating-point Results In Ecmascript / Actionscript 3?

How To Increment Number By 0.01 In Javascript Using A Loop?

Problem I was trying to build out a list of heights in the console by meteres starting from 1.20m a… Read more How To Increment Number By 0.01 In Javascript Using A Loop?

Comparing Two Floats To See If They're Both Negative, Or Both Positive

Hay guys, i have 2 floats, which both comes from input boxes. I need to compare these 2 floats, if … Read more Comparing Two Floats To See If They're Both Negative, Or Both Positive

Node.js Maximum Safe Floating-point Number

In Node.js, is there a maximum safe floating-point number like Number.MAX_SAFE_INTEGER? I had a lit… Read more Node.js Maximum Safe Floating-point Number

JavaScript Hexadecimal String To IEEE-754 Floating Point

I've looked around Stackoverflow for a few days trying to solve this problem and played in JsFi… Read more JavaScript Hexadecimal String To IEEE-754 Floating Point