Permalink
Browse files

Changing verbage to reflect "1e12" instead of "10".

  • Loading branch information...
1 parent 1d30646 commit 641f675f4d713a47f09638a502a6879669dc8df0 @nathansmith committed Nov 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ANSWERS.md
View
6 ANSWERS.md
@@ -664,7 +664,7 @@ Joking aside though, if you're a job applicant skimming these answers so that yo
// Loop through all the parameters
while (i--) {
- // Multiply by 10, to account for peculiarities
+ // Multiply by 1e12, to account for peculiarities
// of doing addition with floating-point numbers.
value = parseFloat(arguments[i]) * factor;
@@ -675,8 +675,8 @@ Joking aside though, if you're a job applicant skimming these answers so that yo
}
}
- // Divide back by 10, because we multiplied by
- // 10 to account for floating-point weirdness.
+ // Divide back by 1e12, because we multiplied by
+ // 1e12 to account for floating-point weirdness.
return total/factor;
}
```

0 comments on commit 641f675

Please sign in to comment.