User guide
eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 127
9.1.5 Integer
An integer is a number between -2147483648 and +2147483647. This number can be stored in an integer variable.
When a parameter of integer type is specified for a function or a command and the variable past is of real type, the eWON automatically converts
the real value to an integer value. When the expected value is of integer type and the past value is a character string,
the eWON generates an error.
9.1.6 Real
A real number is a number in floating point representation of which value is between -3.4028236 10E38 and +3.4028234 10E38.
Value of this type can be stored in a variable of real type or in an array of reals.
Precision: a Real number has approximately 10 significant digits.
This means that conversion of a number with more than 10 significant digits to real will lead to a lost of precision.
When a function expects a real number and an integer is passed, the eWON automatically converts the integer into a real value.
If the function waits for a real and a character string is passed, the eWON generates an error.
9.1.7 Alphanumeric character
An alphanumeric character is one of the ASCII characters. Each ASCII character has a numerical representation between 0 and 255.
The ASCII basic function returns the ASCII code of a character, and the CHR$ function converts the ASCII code to a string of 1 character.
9.1.8 Function
A function is a BASIC command having 0 or several parameters and returning a result that can be of integer, real or string type.
Examples:
9.1.9 Operators priority
When these operations appear in expressions, they have the following priority:
• Bracket terms: maximum priority
• All functions except NOT and - (inversion)
• Inversion of sign -
• *, /, ^, MOD (modulo function)
• +, -
• =, >, <, <=, >=, <>
• NOT, BNOT
• AND, OR, XOR: minimum priority
• ^ operator is the Power operator
i.e.: 2^4 = 2*2*2*2
The expressions are ordered by decreasing order of priority.
See also:
“NOT” on page 150, “BNOT” on page 132, “AND” on page 131, “OR” on page 158, “XOR” on page 168, “MOD” on page 150
ASCII "HOP"
GETSYS TAG,"NAME"
PI