[next] [prev] [prev-tail] [tail] [up]

#### Lo

Declaration:
  Function Lo (O : Word or Longint) : Byte or Word;
Description:
  Lo returns the low byte of its argument if this is of type Integer or Word. It returns the low word of its argument if this is of type Longint or Cardinal.
Errors:
  None.
See also:
  Ord (542), Chr (464), Hi (510)

Listing: refex/ex38.pp

Program Example38;
{ Program to demonstrate the Lo function. }
Var L : Longint;
W : Word;
begin
L:=(1 Shl 16) + (1 Shl 4); { $10010 }
Writeln (Lo(L)); { Prints 16 }
W:=(1 Shl 8) + (1 Shl 4); { $110 }
Writeln (Lo(W)); { Prints 16 }
end.

[next] [prev] [prev-tail] [front] [up]