evl v2.03 build 20090801 - c-style expression calculator with base conversion
copyright (c) bytepointer.com 2003-2020
syntax:
evl <expression> [/where:var=value] [/o:<bohsudc>] [/fp:<num>]
expression may be omitted and read from stdin
options:
/q - quiet / less verbose
/t:<#> - force standard int type as [b]=byte, [w]=word, [d]=dword,
or *[q]=qword; may also specify 1,2,4 or 8 respectively
/o:<flags> - output one or more of [b=bin,o=oct,h=hex,*s=signed,*u=unsigned,
*d=double,c=char or i=int_common:bhsu] (default=auto)
/f:<#> - change output floating point precision (default=6)
/v:<name=val> - set variable value for use within expression; replaces value
wherever name appears
/np - disable zero padding of binary and hex values; default is to
pad to fit nearest or specified int type size
/pfx:<#> - number prefix behavior: [0]=never, *[1]=auto (only in quiet
mode), [2]=always; 0b=binary, 0x=hex and 0=octal
pad to fit nearest or specified int type size
/castdouble - when outputting a double (floating point), interpret the
resulting bits directly as a double instead of converting
integer representation to double
/? - this help
supported operators (in order of precedence):
() - parentheses/grouping
pow - power
sqrt - square root
! - boolean NOT
~ - bitwise NOT/complement
* - multiply
/ - divide
modulus
+ - add
- - subtract
<< - bitwise shift left
>> - bitwise shift right
{{ - bitwise rotate left
}} - bitwise rotate right
< - boolean less than
> - boolean greater than
<= - boolean less than or equal to
>= - boolean greater than or equal to
== - boolean equality
!= - boolean not equal
## - boolean substring search
& - bitwise AND
^ - bitwise XOR
| - bitwise OR
&& - boolean logical AND
|| - boolean logical OR
NOTE: because some characters above change how the command line is
interpreted please surround expressions in quotes to ensure the
intended expression is passed to this program.
* Denotes Default