Mozilla Firefox’s JavaScript 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!
Firefox’s Calculator
32 Comments
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.





Pretty cool feature find, Dugg your story BTW.
You can do the same thing in Firefox’s built-in Google search.
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”
you can actually do this in any modern browser. just go to the address bar and type “javascript:alert(1+1);”
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.
“alt+d and tab”
try just + K
oops… that is “ctrl + k”
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.
cool, this works on mozilla 1.2.1 also.
Featured on Emzen.com
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
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
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
I think it is cool. Always like knowing these quirky things about apps.
Neat, I am a web developer in training (going to school for it) and this a handy tip, thanks.
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 !
also works in hex and hex/dec
0xa + 0xa
or
0xa + 10
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.
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
It can be pretty handy for programmers. Entering 0xF
interesting math, though:
1/0
Infinity
I KNEW my teachers were lying to me!
It can be pretty handy for programmers. Entering 0xF<<4 into google doesn’t work, but does in the javaScript console.
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)
[...] It all started: here [...]
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.
Joe, I just noticed something. The indentation of each lengthy comment is messed up (fourth line onwards) …
firefox?????????…
…
[...] 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) [...]
@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.
[...] Webby?s World ? Firefox?s Calculator ?? Firefox ? JavaScript ?????????? [...]
[...] 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 ) [...]
This extension has been around for awhile, I’ll be updating it soon.
https://addons.mozilla.org/extensions/moreinfo.php?id=751&application=firefox