Number API Functions: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(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…“)
 
Zeile 4: Zeile 4:
Reference: [http://live.exept.de/ClassDoc/classDocOf:,Integer Integer] [http://live.exept.de/ClassDoc/classDocOf:,Float Float] [http://live.exept.de/ClassDoc/classDocOf:,Fraction Fraction] [http://live.exept.de/ClassDoc/classDocOf:,FixedPoint FixedPoint]
Reference: [http://live.exept.de/ClassDoc/classDocOf:,Integer Integer] [http://live.exept.de/ClassDoc/classDocOf:,Float Float] [http://live.exept.de/ClassDoc/classDocOf:,Fraction Fraction] [http://live.exept.de/ClassDoc/classDocOf:,FixedPoint FixedPoint]
[http://live.exept.de/ClassDoc/classDocOf:,Complex Complex]
[http://live.exept.de/ClassDoc/classDocOf:,Complex Complex]
which inherit from
which all inherit from
[http://live.exept.de/ClassDoc/classDocOf:, Number Number]
[http://live.exept.de/ClassDoc/classDocOf:,Number Number]


[[Useful API Functions | Back to Useful API Functions]]
[[Useful API Functions | Back to Useful API Functions]]

Version vom 31. August 2019, 08:06 Uhr

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 all inherit from Number

Back to Useful API Functions

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



Copyright © 2014-2024 eXept Software AG