blob: a486b8a9da38f87d7ade3d36b18dce5168720547 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
import std/fenv
import std/assertions
func is_significant(x: float): bool =
x > minimumPositiveValue(float) and x < maximumPositiveValue(float)
doAssert is_significant(10.0)
|