2 Instruction Descriptions
2-276
NJ-series Instructions Reference Manual (W502)
Example 3: The following example does not use the sign, but uses the decimal point, fractional
part, and exponent.
Example 4: The following example does not use the sign, fractional part, decimal point, and expo-
nent.
If the value of In is ‘+Inf’, the value of Out is positive infinity. If the value of In is ‘−Inf’, the value of Out is
negative infinity. In either case, characters are not case sensitive.
To convert a real number to a text string, use a **_TO_STRING (Real Number-to-Text String Conver-
sion Group) instruction (page 2-257).
• Always use the correct instruction name for the data type of Out.
• Any single underbars (‘_’) at any location in In are ignored.
• An error occurs if there are any underbars (‘_’) at the beginning or end of In.
• An error occurs if there are two or more consecutive underbars (‘_’) at any location in In.
• An error occurs if there are any underbars (‘_’) between the minus signs (‘−’) or plus sign (‘+’) and the
number at the beginning of In.
• If the content of In exceeds the precision of the data type of Out, the value is rounded.
• If the content of In is closer to 0 than the minimum value of the data type of Out, the value of Out will
be 0.
• If the content of In exceeds the valid range of Out, Out will be positive infinity for a positive number or
negative infinity for a negative number.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• The text string in In does not express a number.
• The text string in In does not end in a NULL character.
• The text string in In has a decimal point but not a fractional part.
Additional Information
Precautions for Correct Use
STRING data LREAL data
1.234567
Out=abc
1 2 3 . 4 5 6 7 e - 0 2
‘ ’
In
STRING data LREAL data
1.0
In Out=abc
1
‘ ’