This commit is contained in:
flywind 2021-02-06 10:33:11 -06:00 • committed by GitHub
commit 065264eae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 30 deletions

View file

@ -96,5 +96,8 @@ template main() =
doAssert floorMod(3 // 10, 1 // 1) == 3 // 10
doAssert floorMod(-3 // 10, 1 // 1) == 7 // 10
when sizeof(int) == 8:
doAssert almostEqual(PI.toRational.toFloat, PI)
static: main()
main()