you can use the flowing methods
Math.trunc()
Math.floor()
Math.ceil()
Math.round()
let decimal = Math.trunc( number )
Copyright © 2025 datapearls.org