How to round the numbers up.



  • There's an expression.

    1/30 
    

    How do you round the results to a whole number? For example, there is a number 1



  • For example,

    Math.Ceiling(1.0/30.0)
    

    Don't forget that you're using a countless division. The result of the 1/30 is zero. So go to the split of the rubber chips (1.0/30.0 = 0.0333333333...) and this number is rounded up.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2