But i'm not sure what exactly this is supposed to accomplish. I just know that a value like 221 does NOT work.
Btw: Steps in the same function is used multiple times for division. If steps === 0, you get 123/0 === Infinity, causing other systems that don't handle this case to fail. Ultimately ending in error messages like "undefined has no method 'substring'".
Last edited by mAritz; 14 Dec 2011 at 1:29 AM.
Reason: Comments in code examples/fix were wrong