add number formating

This commit is contained in:
biglyderv 2025-03-10 05:31:47 -04:00
parent 3f0b0b8ccc
commit a31a41bb94
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
4 changed files with 27 additions and 2 deletions

View file

@ -113,7 +113,7 @@ function renderThing() {
gl.uniformMatrix4fv(matBuffer, false, new Float32Array(MDN.perspectiveMatrix(Math.PI * 100 / 180, ratio, 0.01, 1000)));
hud.textContent = `${Math.floor(nothingness * 100) / 100} nil; ${Math.floor((nGain + getBonus) * 60 * 100) / 100} nil/sec`
hud.textContent = `${numify(nothingness)} nil; ${numify((nGain + getBonus) * 60)} nil/sec`
gl.uniform1f(sizeBuffer, -Math.log(nothingness));