Welcome to
Tweak Marketing official website!
Advanced Email Parser 2.4
Advanced Email Parser v.2.4 has been released. Update it now.
 
download
Technical Support
  Overview
  Select SLA plan
  Knowledge Base
  Check current versions of our products
  Documentation
  Learning courses
  Helpdesk
  Live support
  Private Download
  Personal area

Home / Support / Documentation

• AEP Online Help Index

Calculator

Calculator is used to perform arithmetic operations with variables. Except of standard operations like "Addition" and "Subtraction", it is possible to use logarithmic and trigonometrical functions. Also, this component can be used to transform numeric data to text data in different formats.


Function
The edit box where you are entering text of the function. Template usage is possible.
Result Variable
The variable's name is setting here, and the value returned by the function is placed here.
Result Format
Created results are setting here. The results can be presented in one of the formats:

%[ flags ] [ width ] [ . precision ] type-char

flags is a sequences of any of those:
Flag MeaningFormat Example
-left alignment%-10d100
=centered alignment%=10d100
+show sign even for positive numbers%+d+100
#show numerical base, and decimal point%#x0x64
0pad with 0's (inserted after sign or base indicator)%05d00100
 if the string does not begin with + or -, insert a space before the converted string% 7d    100

width specifies a minimal width of the string resulting after the conversion. If necessary, the string will be padded with alignment and fill characters either set on the stream via manipulators, or specified by the format-string (e.g. flags '0', '-', ..)

precision (preceded by a point), sets the precision
When the result a floatting type number, it sets the maximum number of digits
after decimal point when in fixed or scientific mode
in total when in default mode ('general mode', like %g)
When used with type-char s or S it takes another meaning : the conversion string is truncated to the precision first chars. (Note that the eventual padding to width is done after truncation.)
type-char:
Flag MeaningFormat Example
p or x hexadecimal output%x0x64
ooctal output%o144
escientific float format%e3.333333e-001
ffixed float format%f0.333333
ggeneral -default- float format%g0.333333
X, E or Gsame effect as their lowercase counterparts, but using uppercase letters for number outputs. (exponents, hex digits, ..)%X0X64
d, i or udecimal type output%d100
s or Sstring output%s100
c or C1-character output%c1
% print the character %%%%
Examples:
FormatResult
Total %d numbersTotal 25 numbers
Found at 0x%08xFound at 0x00000200
Result is %eResult is 3.333333e-001

See also:

Processors



 
 
Solutions | Products | Support | Price & Ordering | Partners | Blog & Articles | Company

Copyright © TweakMarketing 2012. All rights reserved.