docs minor for math (#16407)

This commit is contained in:
flywind 2020-12-20 21:53:27 -06:00 • committed by GitHub
commit d00a412129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,8 +144,8 @@ func isNaN*(x: SomeFloat): bool {.inline, since: (1,5,1).} =
doAssert NaN.isNaN doAssert NaN.isNaN
doAssert not Inf.isNaN doAssert not Inf.isNaN
doAssert isNaN(Inf - Inf) doAssert isNaN(Inf - Inf)
doAssert not isNan(3.1415926) doAssert not isNaN(3.1415926)
doAssert not isNan(0'f32) doAssert not isNaN(0'f32)
template fn: untyped = result = x != x template fn: untyped = result = x != x
when nimvm: fn() when nimvm: fn()