This commit is contained in:
flywind
2021-02-06 10:33:11 -06:00
committed by GitHub
parent 39230422d0
commit 065264eae1
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()