vipsi - the friendly vip script interpreter

Functions

Numeric functions

fract

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

Flow control: returnReturn Flow control: if … then
Flow control: try … then
the
fractional part of a numeric Glossary: Valuevalue.

Flow control: if … then
Flow control: try … then
The
fractional 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
integer 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 in range -1 .. +1, both limits excluded.

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: fractfract Constants: pipi  = 0.14159265358979
vipsi> Numeric functions: fractfract 0.7  0> = 0.7
vipsi> Numeric functions: fractfract -33.44  = -0.44
vipsi> Numeric functions: fractfract 50  = 0
vipsi> Numeric functions: fractfract 1e40  = 0
vipsi>  

Valid HTML   Valid CSS