mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Add transition note from approxEqual to isClose.
This commit is contained in:
parent
6b7a10ecef
commit
8408ce3108
1 changed files with 5 additions and 1 deletions
|
@ -1006,7 +1006,11 @@ if (isFloatingPoint!(X))
|
||||||
|
|
||||||
Warning:
|
Warning:
|
||||||
This template is considered out-dated. It will be removed from
|
This template is considered out-dated. It will be removed from
|
||||||
Phobos in 2.106.0. Please use $(LREF isClose) instead.
|
Phobos in 2.106.0. Please use $(LREF isClose) instead. To achieve
|
||||||
|
a similar behaviour to `approxEqual(a, b)` use
|
||||||
|
`isClose(a, b, 1e-2, 1e-5)`. In case of comparing to 0.0,
|
||||||
|
`isClose(a, b, 0.0, eps)` should be used, where `eps`
|
||||||
|
represents the accepted deviation from 0.0."
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
value = Value to compare.
|
value = Value to compare.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue