DINT 32-bit integer

Also called: double integer, long integer, 32-bit integer

Large whole number, about −2.1 to 2.1 billion.

What it does

A signed 32-bit integer, when INT is too small.

When to use it

Totalizers, cycle counts, calculations above 32,767.

Size32 bits
Possible values-2,147,483,648 … 2,147,483,647
Starting value0
Constants (examples)0, 100000, -5

The bits

Each bit is worth a power of 2 (bit 0 = 1, bit 1 = 2, bit 2 = 4…) and the bits at 1 add up. The last bit (bit 31) is the sign: it is worth -2,147,483,648. All bits at 1 therefore give −1.

Value313029282726252423222120191817161514131211109876543210
000000000000000000000000000000000
100000000000000000000000000000001
500000000000000000000000000000101
100,00000000000000000011000011010100000
2,147,483,64701111111111111111111111111111111
-111111111111111111111111111111111
-2,147,483,64810000000000000000000000000000000

Behaviour in detail

European (IEC) and American styles

DINT on both sides. In the American style it is the default integer type.