functions 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ========================
  2. Expression: true()
  3. Object is a Boolean : true
  4. ========================
  5. Expression: false()
  6. Object is a Boolean : false
  7. ========================
  8. Expression: number("1.5")
  9. Object is a number : 1.5
  10. ========================
  11. Expression: number('abc')
  12. Object is a number : NaN
  13. ========================
  14. Expression: -number('abc')
  15. Object is a number : NaN
  16. ========================
  17. Expression: floor(0.1)
  18. Object is a number : 0
  19. ========================
  20. Expression: floor(-0.1)
  21. Object is a number : -1
  22. ========================
  23. Expression: floor(-0)
  24. Object is a number : 0
  25. ========================
  26. Expression: floor(0)
  27. Object is a number : 0
  28. ========================
  29. Expression: floor(5.2)
  30. Object is a number : 5
  31. ========================
  32. Expression: floor(-5.2)
  33. Object is a number : -6
  34. ========================
  35. Expression: ceiling(0.1)
  36. Object is a number : 1
  37. ========================
  38. Expression: ceiling(-0.1)
  39. Object is a number : 0
  40. ========================
  41. Expression: ceiling(-0)
  42. Object is a number : 0
  43. ========================
  44. Expression: ceiling(0)
  45. Object is a number : 0
  46. ========================
  47. Expression: ceiling(5.2)
  48. Object is a number : 6
  49. ========================
  50. Expression: ceiling(-5.2)
  51. Object is a number : -5
  52. ========================
  53. Expression: round(0.1)
  54. Object is a number : 0
  55. ========================
  56. Expression: round(5.2)
  57. Object is a number : 5
  58. ========================
  59. Expression: round(5.5)
  60. Object is a number : 6
  61. ========================
  62. Expression: round(5.6)
  63. Object is a number : 6
  64. ========================
  65. Expression: round(-0.1)
  66. Object is a number : 0
  67. ========================
  68. Expression: round(-5.2)
  69. Object is a number : -5
  70. ========================
  71. Expression: round(-5.5)
  72. Object is a number : -5
  73. ========================
  74. Expression: round(-5.6)
  75. Object is a number : -6