I was informed that js has a toFixed function