[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum branch
From: |
Stefan Monnier |
Subject: |
Re: bignum branch |
Date: |
Fri, 20 Jul 2018 17:48:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> - doc: /* Return t if the two args are the same Lisp object.
> -Floating-point numbers of equal value are `eql', but they may not be `eq'.
> */)
> + doc: /* Return t if the two args are `eq' or are indistinguishable
> numbers.
> +Floating-point values with the same sign, exponent and fraction are `eql'.
> +This differs from numeric comparison: (eql 0.0 -0.0) returns nil and
> +\(eql 0.0e+NaN 0.0e+NaN) returns t, whereas `=' does the opposite. */)
Interestingly, if we change EQ to do the comparison currently performed
by `eql`, then `eql` is easier to document since "indistinguishable"
becomes closer to the truth (currently you can distinguish two `eql`
numbers by resorting to `eq`).
Stefan
- Re: bignum branch, (continued)
- Re: bignum branch, Clément Pit-Claudel, 2018/07/18
- Re: bignum branch, Stefan Monnier, 2018/07/18
- Re: bignum branch, Clément Pit-Claudel, 2018/07/18
- Re: bignum branch, Andy Moreton, 2018/07/18
- Re: bignum branch, Achim Gratz, 2018/07/18
- Re: bignum branch, Stefan Monnier, 2018/07/18
- Re: bignum branch, Eli Zaretskii, 2018/07/18
- bignum branch, Paul Eggert, 2018/07/19
- Re: bignum branch, Achim Gratz, 2018/07/20
- Re: bignum branch, Paul Eggert, 2018/07/20
- Re: bignum branch,
Stefan Monnier <=
- Re: bignum branch, Achim Gratz, 2018/07/22
- Re: bignum branch, Paul Eggert, 2018/07/18
- Re: bignum branch, Andy Moreton, 2018/07/18
- Re: bignum branch, Paul Eggert, 2018/07/18
- Re: bignum branch, Andy Moreton, 2018/07/25