let num1 = 3.141596
let num2 = 18.58
let num3 = -16.06
let num4 = -16.58
let num5 = 0.34
let num6 = -0.34
const round1 = Math.ceil(num1)
const round2 = Math.ceil(num2)
const round3 = Math.ceil(num3)
const round4 = Math.ceil(num4)
const round5 = Math.ceil(num5)
const round6 = Math.ceil(num6)
console.log({round1},{round2},{round3},{round4},{round5},{round6});
//{ round1: 4 } { round2: 19 } { round3: -16 } { round4: -16 } { round5: 1 } { round6: -0 }
//【注】为小数时,小数部分直接舍去