<number> = Numeric functions: fractfract <number>
<number> = Numeric functions: fractfract ( <number> )
Flow control: returnReturn Flow control: if … then Flow control: try … thenthe fractional part of a numeric Glossary: Valuevalue.
Flow control: if … then Flow control: try … thenThe fractional part of a Glossary: number, num_valnumber has Flow control: if … then Flow control: try … thenthe same Glossary: number, num_valnumber Numeric functions: signsign as Flow control: if … then Flow control: try … thenthe Glossary: number, num_valnumber itself. Flow control: if … then Flow control: try … thenThe 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 … thenthe returned Glossary: number, num_valnumber is in range -1 .. +1, both limits excluded.
As with all Vipsi command syntax: Functions Functions Glossary: Functionfunctions which accept exactly one Vipsi command syntax: Arguments Glossary: Argumentsargument Flow control: if … then Flow control: try … thenthe 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 … thenif the Vipsi command syntax: Arguments Glossary: Argumentsargument is no Vipsi command syntax: Expressions Glossary: Expressionexpression with Vipsi command syntax: Operators Operators Glossary: Operatoroperators.
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>
|