mobstac badge

Pin It

Widgets

RUN YOUR CALCULATIONS IN YOUR OPERAMINI AS A CALCULATOR


This trick could help you run calculations on your opera. no doubt it sounds funny. Right? simple applications of java-script made this a possibility

Just type the following codes to Opera Mini address bar. Replace A and B by any number you want.
**Addition
javascript:alert(a+b)

**Subtraction
javascript:alert(a-b)

**Multiplication
javascript:alert(a*b)

**Division
javascript:alert(a/b)

**i.e javascript:alert(2+2)

>Modules is the remainder of the integer division of a by b

>javascript:alert(a%b)

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

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

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

*TANGENT
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 java-script.
 Start the magic! 
MERRY CHRISTMAS FROM ETECHVILLA

0 comments:

Related Posts Plugin for WordPress, Blogger...