|
Comparing Mixed Expressions - Not Recommended
It is possible, but highly not recommended, to compare one numeric expression and one string expression. The expressions are compared as numeric entities:
-
The numeric argument is formatted as a string using the appropriate format (as explained above, in comparing two numeric expressions), and that string is converted to a numeric value again.
-
The string argument is converted to a floating point number.
-
The two numbers are compared.
It is the GPP developer's responsibility to ensure that the string can be properly converted to a number. If not, results are unpredictable.
|