vipsi - the friendly vip script interpreter

Functions

Numeric functions

int

mber> = Numeric functions: intint <number>
mber> = Numeric functions: intint ( <number> )

Flow control: returnReturn integral part of a numeric Glossary: Valuevalue.

Flow control: if … then
Flow control: try … then
The
integral part of a Glossary: number, num_valnumber has Flow control: if … then
Flow control: try … then
the
same Glossary: number, num_valnumber Numeric functions: signsign as Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber itself. Flow control: if … then
Flow control: try … then
The
fractional part is chopped off Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Flow control: if … then
Flow control: try … then
the
returned Glossary: number, num_valnumber is rounded towards 0 (zero).

Numeric functions: intint Flow control: do … loopdoes Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
Text functions: convert
Instructions: convert
convert
Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber to an 'integer Glossary: number, num_valnumber' as known in C, it Flow control: returnreturns Flow control: if … then
Flow control: try … then
the
integral part of a Glossary: number, num_valnumber which may be much larger than a C-style 'integer Glossary: number, num_valnumber'.

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: intint Constants: pipi  = 3
vipsi> Numeric functions: intint 0.7  0> = 0
vipsi> Numeric functions: intint -33.44  = -33
vipsi> Numeric functions: intint 50  = 50
vipsi> Numeric functions: intint 1e40  = 1e+40
vipsi>  

Valid HTML   Valid CSS