vipsi - the friendly vip script interpreter

Functions

Numeric functions

log2

<number> = Numeric functions: log2log2 <number>
<number> = Numeric functions: log2log2 ( <number> )

Calculate Flow control: if … then
Flow control: try … then
the
logarithm of a Glossary: number, num_valnumber to Integer numbers: Base 256base 2.

Flow control: if … then
Flow control: try … then
The
Glossary: number, num_valnumber must Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
be 1 Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
Flow control: if … then
Flow control: try … then
the
Flow control: if … then
Flow control: try … then
the
result will be 'NaN'.

As with all Vipsi command syntax: Functions
Functions
Glossary: Function
functions
which accept exactly one Vipsi command syntax: Arguments
Glossary: Arguments
argument
Flow control: if … then
Flow control: try … then
the
Separators: Round brackets "( … )"
Functions with varying return types: bracket expression "()"
parenthesis
are optional Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
may be omitted Flow control: if … then
Flow control: if … then
if the
Vipsi command syntax: Arguments
Glossary: Arguments
argument
is no Vipsi command syntax: Expressions
Glossary: Expression
expression
with Vipsi command syntax: Operators
Operators
Glossary: Operator
operators
.

e.g.:

vipsi> Numeric functions: log2log2(8)  = 3
vipsi> Numeric functions: log2log2 255  = 7.9943534368589
vipsi>  

Valid HTML   Valid CSS