On Mon, Jan 22, 2024 at 08:07:14PM +0000, Paul "LeoNerd" Evans wrote:
> Since we now have `true` and `false` builtins, in addition to the
> ever-present `undef`, I wonder if folks would want two more for
> slightly nicer working with floating-point numbers, being ways to get
> inf and NaN.
Don't we have those already?
perldata has this section:
> Special floating point: infinity (Inf) and not-a-number (NaN)
>
> Floating point values include the special values "Inf" and "NaN",
> for infinity and not-a-number. The infinity can be also negative.
What would be those add?
(Also, possibly spell infinity as "Inf" rather that "inf".)
--
Philippe Bruhat (BooK)
The faster the climb, the swifter the fall.
(Moral from Groo The Wanderer #87 (Epic))