Number.k 547 B

12345678910111213141516171819202122232425
  1. invoke {
  2. assert 1 + 2 == 3
  3. assert 2 * 3 == 6
  4. assert 16 / 2 == 8
  5. assert 16 % 2 == 0
  6. assert 17 % 2 == 1
  7. assert 2^10 == 1024
  8. assert 0 is Number
  9. assert 0 is Int
  10. assert 2e5 is Number
  11. assert 2e5 is Int
  12. assert 0xff is Number
  13. assert 0xff is Int
  14. assert 0xA0 is Number
  15. assert 0xA0 is Int
  16. assert 1.5 is Number
  17. assert 1.5 is not Int
  18. assert 2e-5 is Number
  19. assert 2e-5 is not Int
  20. assert 0/0 is not Number
  21. assert 0/0 is NaN
  22. assert 1/0 is not Number
  23. assert 1/0 is Infinite
  24. }