Data Operations; Handling Numeric Data - Omron SYSMAC CV500-BSC11 Operation Manual

Basic units
Table of Contents

Advertisement

Data Operations

5-1

Data Operations

5-1-1 Handling Numeric Data

Types of Numeric Data
Octal Format
Decimal Format
Hexadecimal Format
Single-precision Real
Numbers
Double-precision Real
Numbers
76
The numeric data the BASIC Unit handles is classified into integers and real
numbers, as shown below, and can be expressed in various formats.
Integers
Numeric data
Real numbers
In this format, the numeric data is expressed in numerals 0 through 7 with &O or &
prefixed. With the BASIC Unit, up to 5 digits of octal numbers can be expressed
(from 0 to 77777).
Examples:
&O123
&256
The BASIC Unit can handle decimal integers from –32768 to +32767.
Examples:
–256
123%
In this format, the numeric data is expressed in numerals 0 through 9 and alpha-
betic characters A through F with &H prefixed. The BASIC Unit can represent
hexadecimal numbers from 0 to FFFF.
Examples:
&H123
&H2E4F
The numeric data of this type is expressed using up to 5 digits with the sixth digit
rounded. The range of the numeric data is from –3.4E+38 to 3.4E+38 for vari-
ables and –3.40282E+38 to 3.40282E+38 for arithmetic results. The represen-
tation format of single-precision real number can be any of the following:
• Number of six digits or less
• Exponential format with E
• With ! suffixed to numeral
Examples:
3.21
–1.23E + 4
345.2!
The numeric data of this type is expressed with up to 15 digits with the 16th
digit rounded. The range of the numeric data is therefore from
–1.701411834604692D+307 to 1.701411834604692D+307. The representa-
tion format of double-precision real numbers can be any of the following:
• Number of seven digits or less
• Exponential format with D
• With # suffixed to numeral
Section 5-1
Octal
Decimal
Hexadecimal
Single-precision
real number
Double-precision
real number

Advertisement

Table of Contents
loading

Table of Contents