The front end Js regular numbers retain digits December 31, 2023 by Emily Smith No Comments floor (number){ number = String(number).replace(/^(.*\.. {2}). * $/, "$1"); number = Number(number); Return number}Copy the code