How can i dividing and rounding up in javascript? For example:
var one = 10/4;
This return 2.5, but i would like receive 3
var two = 120/7;
This return 17.14, but i would like receive 18
etc
How is the best way for this?
How can i dividing and rounding up in javascript? For example:
var one = 10/4;
This return 2.5, but i would like receive 3
var two = 120/7;
This return 17.14, but i would like receive 18
etc
How is the best way for this?