Explorar el Código

Use the superscript 3 character instead of a 3 for m^3

The transformNumbers function was turning m^3 into m^3.00
tags/v1.1.0
Fen Dweller hace 5 años
padre
commit
96f032bc1c
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      units.js

+ 3
- 3
units.js Ver fichero

@@ -471,13 +471,13 @@ function metricSymVolume(m3, singular=false) {
return volume + " L";
} else if (m3 < 1000000) {
let volume = round(m3, 0);
return volume + " m" + "3".sup();
return volume + " m" + "³";
} else if (m3 < 1e12){
let volume = round(m3/1e9, 3);
return volume + " km" + "3".sup();
return volume + " km" + "³";
} else {
let volume = round(m3/1e9, 0);
return volume + " km" + "3".sup();
return volume + " km" + "³";
}
}



Cargando…
Cancelar
Guardar