add approxequal (#15766)

* add approxequal

* Address review comments, tests that pass

* more wikipedia links [ci skip]

* forgot since

Co-authored-by: b3liever <b3liever@yandex.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
Antonis Geralis 2020-10-30 10:56:28 +02:00 • committed by GitHub
commit c274d9aed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- `prelude` now works with the JavaScript target.
- Added `ioutils` module containing `duplicate` and `duplicateTo` to duplicate `FileHandle` using C function `dup` and `dup2`.
- Added `almostEqual` in `math` for comparing two float values using a machine epsilon.
- The JSON module can now handle integer literals and floating point literals of arbitrary length and precision.
Numbers that do not fit the underlying `BiggestInt` or `BiggestFloat` fields are kept as string literals and
@ -16,6 +17,7 @@
- Added `randState` template that exposes the default random number generator. Useful for library authors.
## Language changes