help-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ensure numeric comparison


From: Manuel Collado
Subject: Re: ensure numeric comparison
Date: Fri, 27 May 2022 12:08:19 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

El 26/05/2022 a las 18:58, Peng Yu escribió:
...
The point is not users want to compare unassigned values. The point is
that  due to the input that may contain corner cases, unassigned
values can be passed to comparison operators. To make the manual
complete, the unassigned values should be added to the table.

No. The manual is complete. In section "6.3.2.1 String Type versus Numeric Type", a couple of paragraphs before the table of type comparisons, it states:

"Uninitialized variables also have the strnum attribute."

So the table is complete. No need for an extra value type.

Can you show an example that doesn't follow what the manual says?

HTH.
--
Manuel Collado - http://mcollado.z15.es



reply via email to

[Prev in Thread] Current Thread [Next in Thread]