Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

A Note about Floats

console.log(0.1 + 0.2);  // 0.30000000000000004
console.log((0.1 * 10 + 0.2 * 10) / 10);  // 0.3

console.log(1.03 + 1.04);  // 2.0700000000000003
console.log((1.03 * 100 + 1.04 * 100) / 100);  // 2.07
Comment

PREVIOUS NEXT
Code Example
Javascript :: documetn 
Javascript :: find a node that match a spesific selector string in the paren 
Javascript :: image support in node js chat app 
Javascript :: Write File to the Operating System with NodeJS 
Javascript :: Replace all ocourrences in JS 
Javascript :: reset default style javascript 
Javascript :: close worker 
Javascript :: Create an Array of specific length with some value at each index 
Javascript :: root emit with params 
Javascript :: date javascript only show day month year 
Javascript :: react native delay input 
Javascript :: react show new app 
Javascript :: jquery console.log object file 
Javascript :: react document documentMode not found 
Javascript :: getting ad to close jquery 
Javascript :: Baris (Record/Tuple adalah] 
Javascript :: initialize back4app 
Javascript :: nestjs mongoose ClassSerializerInterceptor not working 
Javascript :: get twitter username from string javascript 
Javascript :: serve public folder express without file extension 
Javascript :: A class I made for creating OOP styled JSON objects 
Javascript :: caeser psypher javascript 
Javascript :: toast duplicate angular 
Javascript :: how to like posts on instagram js 
Javascript :: how to give id dynamically in javascript 
Javascript :: Deputy json file 
Javascript :: shopify get values from settings_data.json 
Javascript :: markdown config 
Javascript :: babel 7 ReferenceError: regeneratorRuntime 
Javascript :: angular form initialse 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =