FreeBASIC <-> Object Pascal | 16-bitové celé číslo

FreeBASIC

short

Popis

 short
Použitá kľúčové slová: short

Príklady

FreeBASIC

Možné požitie 16-bitové celé číslo:
xmin = -32768
 ymax = 32767
Dim x As short= -1234        ' x = -1234
Dim y As short= -(1500 mod 60)' y = -25
y = CShort((x * y))    ' z = 30850
.
Object Pascal

smallint

Popis

 smallint
Použitá kľúčové slová: smallint

Príklady

Object Pascal

Možné požitie 16-bitové celé číslo:
xmin := -32768; ymax := 32767;
x:= -1234;        // x = -1234
y:= -(1500 mod 60);// y = -25
y := smallint((x * y));    // z = 30850

Môžete to nájsť v nasledujúcich kolekciách: celé čísla so znamienkom | celé čísla | čísla | dátové typy
V iných jazykoch: en hu cz sk