I am not so sure about that.
print "1989.9999999999998" + 0 ; # 1990The 'target form' is decimal string.
From perlnumber Target form: If the source number can be represented in the target form, that representation is used.
Also: When a numeric value is passed as an argument to such an operator, it will be converted to the format understood by the operator.. My assumption is that this counts for + - / * etc applied to the decimal string and eventually also for eq.
In reply to Re^3: number comparison with a twist
by Veltro
in thread number comparison with a twist
by anotherguest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |