Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Data types JavaScript

String Text string that can be up to approximately 2 billion characters in length in the Unicode character set.
 
See also Pm string methods.
Numeric JavaScript sees no difference between a whole number value and a floating point value.

All numbers in JavaScript are represented as floating point values by the 64-bit format that is defined by the UEEE754 standard (double type format). Mantisa has 52 bits, exponent has 11 bits and the last bit represents the sign.

It can represent large numbers up to +-1.8x10e308 and small numbers up to +-5x10e-324.

 
If the Number variable is to be used for exact computations with integers, then the maximum value that can be used for computation is 9 007 199 254 740 992 (approx. 9 quadrillions). Number 1 cannot be added to this number. The smalles difference between two numbers is 2. From 18 quadrillions higher it can be 4 etc. If we add 1 then the value of the variable remains unchanged because the resulting number cannot be coded and the result is therefore rounded douwn.
 
Writing the number constant:
- Decimal integer numbers are written normally, for example 0, 3, -10003.
- Hexadecimal numbers can be entered directly by preceding numbers in the proper range with 0x. For example, 0x10 represents decimal 16 in hexadecimal notation.
- Real number is written normally with decimal point, for example 3.14. It can also be written in exponencial form: the letter e is written after the real number, followed by a plus/minus sign and a whole number exponent, for example 7.12e+32, 2.458268e-12.
 
See also methods: Pm.ToNumber, Pm.IsInt, Pm.Round ...
Boolean Logical value:
true (numeric value is "nonzero", mostly -1) or
false (numeric value is 0)
 
Object General, undefined object.
 
null Flag that value contains no valid data.
 
See also methods: Pm.IsValid.
 

History:
Pm8.02.00: Created
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice