Firefox’s Calculator

Mozilla — Joe Anderson @ 1:14 pm Thursday 16 February 2006

’s Console can be used as a calculator. Open up the JavaScript Console (Tools>JavaScript Console) and press the messages tab, and in the input box type in your sum, such as 1+2 or 10/2 or even 7738/4*884. Don’t use an = sign. To find your answer press evaluate. In the box below, you’ll see your answer. This saves having to install any extensions or pressing the Start button!



Digg this!

32 Comments

  1. Pretty cool feature find, Dugg your story BTW.

    Comment by Jeremiah — 17 February 2006 @ 2:37 am
  2. You can do the same thing in Firefox’s built-in Google search.

    Comment by Jimbob — 17 February 2006 @ 3:03 pm
  3. yeah google’s calculator is way cooler and you don’t have to dig through 3 levels of menus to get to it. alt+d and tab, type your calculation, enter and boom.

    try this one in google’s calc and see if your lame JS calc can get it right:

    “49 days in fortnights”

    Comment by randy — 17 February 2006 @ 3:09 pm
  4. you can actually do this in any modern browser. just go to the address bar and type “javascript:alert(1+1);”

    Comment by andy — 17 February 2006 @ 3:13 pm
  5. Yeah, but google inserts annoying little spacers to mark every 3 digits, which is fine and dandy until you actually want to cut and paste the thing which comes out as spaces. So 123456789 comes out as “123 456 789″, and makes it useless (without modification) for anything else.

    Comment by dortho — 17 February 2006 @ 3:17 pm
  6. “alt+d and tab”

    try just + K

    ;)

    Comment by Obley — 17 February 2006 @ 3:20 pm
  7. oops… that is “ctrl + k”

    Comment by Obley — 17 February 2006 @ 3:21 pm
  8. We all know Google has a calculator, and I would rather use it too. It can still be useful though if you’re on a GPRS connection or something.

    Comment by Joe Anderson — 17 February 2006 @ 3:33 pm
  9. cool, this works on mozilla 1.2.1 also.

    Comment by School Comp — 17 February 2006 @ 3:34 pm
  10. Featured on Emzen.com

    Comment by covax — 17 February 2006 @ 3:34 pm
  11. Google cant handle big problems such as this

    (200 * 600) + (28000 * 35425) + (242545 / 23) * 28^1000

    inless for sum reason its just not goin to the calculator. Google still has the leg up though cause u can use the fortnight comment or even convert money

    Comment by Gala — 17 February 2006 @ 3:36 pm
  12. Well Msn search can find X:

    6 = 5+x

    try that in msn search or just press this link:

    http://search.msn.com/results.aspx?q=6%3Dx%2B5&FORM=MSNH&srch_type=0

    Comment by David — 17 February 2006 @ 3:40 pm
  13. it needs to have big easy to push fast buttons. have it always available via autohide tabs, way more things should be instantly available via autohiding tabs

    Comment by joecool — 17 February 2006 @ 3:40 pm
  14. I think it is cool. Always like knowing these quirky things about apps.

    Comment by TheMadAdmin — 17 February 2006 @ 3:46 pm
  15. Neat, I am a web developer in training (going to school for it) and this a handy tip, thanks.

    Comment by Mohan — 17 February 2006 @ 3:46 pm
  16. Check this extension
    https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&category=XUL%20Applications&numpg=10&id=1194
    it’s a really great calculator !

    Comment by marc — 17 February 2006 @ 3:47 pm
  17. also works in hex and hex/dec
    0xa + 0xa
    or

    0xa + 10

    Comment by alt3r360 — 17 February 2006 @ 3:49 pm
  18. the difficulty with the ‘big problem’ above is 28^1000. it equals 1.439*10^1447. i don’t think that google recognizes this as a mathematical expression. trust me, if it did, it could evaluate it.

    Comment by andrew — 17 February 2006 @ 3:51 pm
  19. Gala – just remove the parethesis, google adds them for you, so
    200 * 600 + 28000 * 35425 + 242545 / 23 * 28^100

    becomes:
    (200 * 600) + (28 000 * 35 425) + ((242 545 / 23) * (28^100)) = 5.48109872 ? 10^148

    Comment by jt — 17 February 2006 @ 3:53 pm
  20. It can be pretty handy for programmers. Entering 0xF

    Comment by Prizeonion — 17 February 2006 @ 3:54 pm
  21. interesting math, though:
    1/0
    Infinity

    I KNEW my teachers were lying to me!

    Comment by seekoei — 17 February 2006 @ 3:55 pm
  22. It can be pretty handy for programmers. Entering 0xF<<4 into google doesn’t work, but does in the javaScript console.

    Comment by Prizeonion — 17 February 2006 @ 3:56 pm
  23. BTW: It can be even easier that that. Why not just type “javascript:20*30″ in the address bar? The advantage over Google is quite clear – Javascript can handle REAL math, not just elementary school calculus – just look up a tutorial somewhere (and you can use Google for THAT) :o )

    Comment by Jakub — 17 February 2006 @ 4:10 pm
  24. [...] It all started: here [...]

    Pingback by The mind of BC » Here we go — 17 February 2006 @ 4:32 pm
  25. The great thing about this little post is not just the actual post, but also the comments that follow. Great work guys.

    In the past, I have used the Google Calc, the Mozilla Javascript Console, and the javascript: trick , but this page is a handy reference for anyone who has to evaluate an mathematical expression.

    Comment by VeeKay — 17 February 2006 @ 5:16 pm
  26. Joe, I just noticed something. The indentation of each lengthy comment is messed up (fourth line onwards) …

    Comment by VeeKay — 17 February 2006 @ 5:19 pm
  27. firefox?????????…

    Trackback by LZ00ZL — 18 February 2006 @ 2:25 am
  28. [...] Firefox?s Calculator Mozilla Firefox has a built-in calculator, known as the JavaScript Console. This post describes how to use it. (tags: firefox Calculator) [...]

    Pingback by ASWAI » links for 2006-02-18 — 18 February 2006 @ 3:18 pm
  29. @jt, you made a mistake. google never recognizes 28^1000. Maybe the number is too big, you typed 28^100, which is done fine.

    Also, have you guys tried the same calculation in javascript, because javascript:Math.pow(28,1000) is Infinity and 28^1000 = 28 XOR 1000 = 1012. Both hardly correct answers.

    Comment by michiel — 20 February 2006 @ 1:03 pm
  30. [...] Webby?s World ? Firefox?s Calculator ?? Firefox ? JavaScript ?????????? [...]

  31. [...] Firefox?s Calculator Mozilla Firefox has a built-in calculator, known as the JavaScript Console. This post describes how to use it. (tags: firefox Calculator ) [...]

    Pingback by ASWAI » links for 2006-02-17 — 1 March 2006 @ 12:51 am
  32. This extension has been around for awhile, I’ll be updating it soon.

    https://addons.mozilla.org/extensions/moreinfo.php?id=751&application=firefox

    Comment by nick — 4 April 2006 @ 6:38 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Licence. (c) 2010 Webby’s World | Privacy Policy | Powered by WordPress
Designed by Comma Dot Colon on the Barecity theme.