I sterted with 6.238, and rounded down to 6, 6.23 and up to 7 and 6.24
let n = 6.238
let nc = Math.ceil(n)
let nf = Math.floor(n)
let nf2 = function(n) {
let nf2 = n
let m = nf2 * 100
m = Math.floor(m)/100
return m
}
let nc2 = (n) => {
let nc2 = n
let m = nc2 * 100
m = Math.ceil(m)/100
return m
}
console.log(nf,nf2(n),nc,nc2(n))