Main : Macros : 

Category: Macros
Download Now!Macro to evaluate selection (Calculator) Popular Version: 1.0
Submitted Date:  10/21/2006
Description:
Title: Macro to evaluate selected text as an expression
File name: EvaluateSelectionCalculator.jsee
Updated: October 21, 2006
Author: Vlad
Website:
Install: Macros menu - Select
Requires: EmEditor Professional
Support: Forum - Questions and Answers about Macros
Type: Freeware
Description:

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:
(4*3.1-3.4)/1.5+6
7 % sqrt( pow (5,2) - 9*sin(PI/2) )
0xff * 1e-3
111111111*111111111==12345678987654321
a=1; b=3; a/b

originally posted 6/16/2004 at http://www.emeditor.com/forum/viewtopic.php?t=161

Downloaded 1267 times  1267     Supported Platforms EmEditor Professional   Home Page 
Rating: 0.00 (0 votes)
Rate this File | Modify | Report Broken File | Tell a Friend | Comments (0)


English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文