Created
December 16, 2010 22:40
-
-
Save pdokas/744152 to your computer and use it in GitHub Desktop.
Calculates how much money the pinboard.in signup price algorithm nets over time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NUMBERZ = function(min, max) { | |
var sum = 0, i; | |
min *= 1000, max *= 1000; | |
for (i = min; i < max; i++) { | |
sum += +(i / 1000).toFixed(2); | |
} | |
return +sum.toFixed(2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment