Macro to evaluate selection (Calculator)

This macro works as a calculator. It uses eval() method to evaluate selected
text as an expression. The result is displayed and copied to the clipboard.
Functions: pow(), sqrt(), exp(), log(), abs(), sin(), cos(), tan(), asin(), acos(), atan(), atan2(), ceil(), floor(), round(), random(), min(), max()
Constants: PI, E, LN2, LN10, LOG2E, LOG10E, SQRT1_2, SQRT2
See JScript or JavaScript reference (Math object) for details.
Examples of expressions:
7 % sqrt( pow (5,2) - 9*sin(PI/2) )
0xff * 1e-3
a=1; b=3; a/b

Your Download will start in 5 seconds...

File Size2.9 KB
DateOctober 21, 2006
Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone