Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Example 3: The following example does not use the sign, but uses the decimal point, fractional
Example 4: The following example does not use the sign, fractional part, decimal point, and expo-
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.
Additional Information
To convert a real number to a text string, use a **_TO_STRING (Real Number-to-Text String Conver-
sion Group) instruction (page 2-287).
Precautions for Correct Use
• 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 has a decimal point but not a fractional part.

NY-series Instructions Reference Manual (W560)

part, and exponent.
STRING data
'
'
In
1 2 3 . 4 5 6 7 e - 0 2
nent.
STRING data
'
'
In
1
2 Instruction Descriptions
LREAL data
Out=abc
1.234567
LREAL data
Out=abc
1.0
2
2-305

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents