var num1=0.1 var num2=0.2 var num3=0.3 Console.log(num1+nun2 == num3) | Sololearn: Learn to code for FREE!

+2

var num1=0.1 var num2=0.2 var num3=0.3 Console.log(num1+nun2 == num3)

what is the result ??

1/27/2018 1:10:15 PM

Demi Louka

2 Answers

New Answer

+1

The result is false because in JavaScript 0.1 + 0.2 = 0.3000000000000004.

+1

thanks now i understand