[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: percent-change
From: |
Yuri Khan |
Subject: |
Re: percent-change |
Date: |
Sun, 14 May 2023 21:29:48 +0700 |
On Sun, 14 May 2023 at 19:20, Emanuel Berg <incal@dataswamp.org> wrote:
> But how/why does that work if 'from' is 0?
>
> (/ 1 0 0.01) ; 1.0e+INF
>
> What does that mean?
In floating point, dividing by zero is allowed and yields +infinity,
-infinity or (quiet) not-a-number depending on the sign of the
numerator. β/β knows to perform the division in floating when at least
one operand is a float, which 0.01 nicely provides. β1.0e+INFβ is just
the printed representation for positive infinity.