Home javascript Js small number conversion integer method 2020-03-30 01:28:17 OfStack JS decimal to integer floor: drop math.floor (12.9999) = 12 ceil: progress math.ceil (12.1) = 13; Round: round math.round (12.5) = 13 math.round (12.4) = 12