Number API Functions
Version vom 31. August 2019, 08:05 Uhr von Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „This document lists most useful (and most often needed) functions. Be aware, that there are many more to be found in either the class references or via the bui…“)
This document lists most useful (and most often needed) functions. Be aware, that there are many more to be found in either the class references or via the builtin class browser.
Reference: Integer Float Fraction FixedPoint Complex which inherit from Number Number
Arithmetic[Bearbeiten]
The usual arithmetic operators:
aNumber + aNumber => Number aNumber - aNumber => Number aNumber * aNumber => Number aNumber / aNumber => Number
Truncated result (towards the next smaller integer i.e. towards negative infinity):
aNumber // aNumber => Integer
Example:
100 // 3 => 33
-100 // 3 => -34