]> Repositorios git - scryer-prolog.git/commit
correct handling of floats with N digits (~f and ~Nf)
authorMarkus Triska <[email protected]>
Fri, 28 Feb 2025 07:14:34 +0000 (08:14 +0100)
committerMarkus Triska <[email protected]>
Fri, 28 Feb 2025 07:40:53 +0000 (08:40 +0100)
commit2d4fcf9714ac0b754446761a4c60278776c36657
tree767f3147f0db4fd0595ce1e95f2dc4088f8846ef
parenta0e3283d64aeb6ecf7be9fcc702bd1b98d8e5e36
correct handling of floats with N digits (~f and ~Nf)

This addresses #2771. Many thanks to @tmerr for reporting the issue!

The code was posted by @UWN in:

    https://github.com/mthom/scryer-prolog/discussions/2805

Many thanks! With additional inputs by @adri326 and @notoria, who also
posted interesting approaches which could help to increase precision
in cases that are currently not ideally handled. Thank you all!

Please see the issue and discussion for more information.
src/lib/format.pl