Quick calculations

Top  Previous  Next

You can calculate mathematical expressions while editing text within an e-mail; The Bat! offers you its unique Evaluate command.

Quick calculations are particularly useful with Quick Templates, e.g. to automate eBay auction logistics.

 

 

1. Type a mathematical expression
2. Select it
3. Go to Utilities->Evaluate

 

Beware: If your formula contains spaces or the caret (^) you must select the expression; otherwise your cursor only needs to be within it!

Note: The expression will be replaced by its evaluation result or, if an equals sign (=) appears at the end of it, the result is placed after that.

 

 

Operators

 

Algebraic

+

plus; add

-

minus; subtract

*

multiply

/

divide by

\

modulus

**

power function

<

smaller than

>

greater than

==

is exactly equal to; identical

<=

smaller than or equal to

>=

greater than or equal to

 

Logic

&

AND

|

OR; inclusive or

^

XOR; exclusive or

~

NOT

&&

logical AND

||

logical OR

^^

logical XOR

!

logical NOT

 

?

ternary operator;

Example: (exp0)?(exp1):(exp2) gives exp1 if exp0 is not zero and exp2 otherwise

 

Note: that the numbers must be in a strict form without national thousands separators; the decimal point is a dot (.).

 

 

Examples

 

Expression

Result in message

1.2+2**3

9.2

1.2+2**3=

1.2+2**3=9.2

(1+2<4&&2==4)?1:100

100

(1+2<4&&2<=3)?1:100

1