Function for finding if the error is small enough to neglect.
- Note
- D - any protection domain
-
Supported types - float32 / float64
- Parameters
-
- Returns
- true if the error is small enough to neglect
-
false if the error is not small enough
- Note
- isNegligible checks up to the 5th place after the comma
- Leakage
- None
◆ isNegligible() [1/4]
D bool isNegligible |
( |
D float32 |
a | ) |
|
◆ isNegligible() [2/4]
D bool isNegligible |
( |
D float32[[1]] |
a | ) |
|
◆ isNegligible() [3/4]
D bool isNegligible |
( |
D float64 |
a | ) |
|
◆ isNegligible() [4/4]
D bool isNegligible |
( |
D float64[[1]] |
a | ) |
|