Join our Facebook Fan Page Follow us on Twitter Subscribe in our RSS Feeds

Opera Mini as Calculator

Wednesday 11 January 2012 0 comments
ALSO WORKS ON MOZILLA, INTERNET EXPLORER, OPERA PC, CHROME...)

Here are some basic Math operations for calculation using our Opera Mini Browser. Try it and be amaze! smile

Just type the following codes to Opera Mini address bar. Replace A and B by any number you want.

~Addition
javascript:alert(a+b)

~Substraction
javascript:alert(a-b)

~Multiplication
javascript:alert(a*b)

~Division
javascript:alert(a/b)

~Modules ie the remainder of the integer division of a by b
javascript:alert(a%b)

Example:
javascript:alert(6%4)=2

*sin
javascript:alert(Math.sin(a))

*Cos
javascript:alert(Math.cos(a))

*Tan
javascript:alert(Math.tan(a))

You can replace a by a number or by Math.PI
Example:
javascript:alert(Math.cos(Math.PI))=-1

*Square root of a
javascript:alert(Math.sqrt(a))

*Minimum/Maximum
javascript:alert(Math.min(a,b,c,d))

javascript:alert(Math.max(a,b,c,d))

*x power y
javascript:alert(Math.pow(x,y))

If you want, you can search Math Object element in javascript.


enjoy!

0 comments:

Post a Comment

 

©Copyright 2011 phtricks.blogspot.com