Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the concepts of real number, integer type and double integer type in PLC? Better give an example.
What are the concepts of real number, integer type and double integer type in PLC? Better give an example.
Real numbers take up two words (four bytes) like long integers, but real numbers use decimals to represent data, such as 88.39, which is a real number type. In programs, general symbols are real numbers or floating-point numbers; ; The long integer is the double integer you said, which can only represent integers, not decimals, such as 888833234. This is a long integer.

Integer is 1 word (2 bytes), which means any integer between -32768 and -32767. It takes up the same space as word data, but the difference is that integer can represent negative numbers, such as -235, or positive numbers, such as 32 12.

These are the basic knowledge in the computer field.