Lo que todo programador debería saber sobre aritmética de punto flotante
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix typo

+1 -1
+1 -1
content/errors/comparison.html
··· 42 42 epsilon = 0.00001; 43 43 if (a==0.0){ 44 44 return Math.abs(b) < epsilon; 45 - else if (b==0.0){ 45 + }else if (b==0.0){ 46 46 return Math.abs(a) < epsilon; 47 47 } else { // ensure commutativity 48 48 return Math.abs((a-b)/a) < epsilon &&