A Bookmarklet Calculator

No, there's not really enough space in 255 characters to do a full-fledged calculator with buttons and a running value. However, you can use a bookmarklet like Script 15.12 to do fairly complex calculations, using JavaScript's built-in Math functions, as described in Table 15.1.

Script 15.12. Surprisingly complex equations can be evaluated with this bookmarklet.