Difference between revisions of "Word"
From Lazarus wiki
Jump to navigationJump to searchm |
(correct maximum value) |
||
Line 1: | Line 1: | ||
{{Word}} | {{Word}} | ||
− | A Word is a 16 bits unsigned integer value. Its maximal value is 2^16 and its minimal value is 0. | + | A Word is a 16 bits unsigned integer value. Its maximal value is 65,535 ((2^16 - 1) or 0xFFFF) and its minimal value is 0. |
− | Nowadays Words are rarely used in arithmetic operations (because most of the CPU have some 32 bit registers, if not 64), but they can be encountered in some API to encode some flags with | + | Nowadays Words are rarely used in arithmetic operations (because most of the CPU have some 32 bit registers, if not 64), but they can be encountered in some API to encode some flags with logical operations (like in a set). |
{{Data types}} | {{Data types}} |
Revision as of 06:28, 13 July 2016
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
A Word is a 16 bits unsigned integer value. Its maximal value is 65,535 ((2^16 - 1) or 0xFFFF) and its minimal value is 0.
Nowadays Words are rarely used in arithmetic operations (because most of the CPU have some 32 bit registers, if not 64), but they can be encountered in some API to encode some flags with logical operations (like in a set).
simple data types |
|
---|---|
complex data types |