Search This Blog

Monday 22 September 2014

use browser as calculator

How to Use Browser as a Calculator

In Google Chrome, press Ctrl + Shift + J to access the console. The shortcut is Ctrl + Shift + K for Firefox while in the case of IE, press F12 and then switch to the Console tab.
You can now write any Maths expression at the command prompt (see GIF above) and get an instant answer. Use the UP & DOWN arrow keys to navigate the command history.
If you using Maths functions, remember to append Math to the function name – like Math.sin or Math.log – as shown below. Here are some more tricks for Chrome Dev Tools.
Math.sqrt(512) + Math.pow(2, 6) 
Math.log(10000, 10) 
Math.floor((Math.random()*100))
Math.sin(45)

No comments:

Post a Comment