🎒 SchoolNEW 💡 Suggest

Hex, binary, decimal (PLC)

Type a number and pick its base: you instantly see it in every other base and how a PLC stores it (two's complement, BCD, floating point). Prefixes 0x, 0b, 16#, 2# are accepted too.

Examples:
HexadecimalFF
Binary1111 1111

Indicative results: always verify with a qualified technician and the applicable standards. Legal notice

Frequently asked questions

How do I convert hex to decimal?

Multiply each digit by a power of 16 starting from the right: 16#1F = 1·16 + 15 = 31. The tool shows the steps.

Why is 16#FFFF equal to -1 as an INT?

A 16-bit INT uses two's complement: values from 16#8000 to 16#FFFF are negative, 16#FFFF = 65535 − 65536 = −1.

What is BCD?

In BCD each decimal digit takes 4 bits: 12 = 0001 0010. It is used for displays, thumbwheel switches and some encoders.

How do I see a REAL in hex?

Type a number with a decimal point (e.g. 12.5): you get the 32 IEEE 754 bits (16#41480000) with sign, exponent and mantissa.

What do you think?

Your rating