Zum Inhalt

integer (Opus Funktion)

Beschreibung

Wandelt einen Wert in einen Integer (ganze Zahl) um. Converts a value to integer. Floats are truncated; strings are parsed as 64-bit integers (a "0x"-prefixed string is read as hexadecimal, e.g. "0x12ab"); colours are cast to their numeric representation; characters yield their code point; datetimes yield their (truncated) OLE serial; a complex value is truncated to its real part. Arrays and matrices of any convertible element type are converted element-wise.

Argumente

Name

Typ

Beschreibung

Value

float

integer

complex

boolean

char

datetime

string

color

float[]

string[]

color[]

Wert, der in einen integer gewandelt werden soll

Rückgabewert integer

Umgewandelter Wert in integer the converted integer value, or an integer array when given an array

Beispiel

Result = integer(6.9);

Resultat: 6

Siehe auch