Hacker News new | ask | show | jobs
by patio11 6263 days ago
You can also use a lookup table, an AJAX call to a square root web service, using the canvas and drawing appropriate geometric shapes then measuring, or, if you have a bit of free time, implementing code which has commercial value, accepting money for it, and then going to Radio Shack and buying yourself a calculator with a square root key.

But personally, yeah, I'd use Math.sqrt.