Skip to content

Instantly share code, notes, and snippets.

View cloudytheconqueror's full-sized avatar

Bo-gyu Jeong cloudytheconqueror

View GitHub Profile
@cloudytheconqueror
cloudytheconqueror / imr-mass-format.md
Last active August 25, 2023 14:09
Mass format in Incremental Mass Rewritten v0.8

Mass format in Incremental Mass Rewritten v0.8 beta 2.2

tl;dr: v0.8 introduces a bunch of new archverse names after yov (yottaverse), changes arv^n to arv^(n-1), and adds a new system of names for very large amounts of mass that is not legitimately attainable yet.

The names in parentheses can be seen by setting the mass format naming to standard.

  • 1 g (gramm)
  • 1 kg (kilogramm) = 1,000 g
  • 1 tonne = 1,000,000 g = 1,000 kg
  • 1 MME (mass of mount everest) = 1.619e20 g = 1.619e14 tonne
@cloudytheconqueror
cloudytheconqueror / NumberFormating.js
Last active August 7, 2021 16:04
Letter notation implementation for TMT OmegaNum
function exponentialFormat(num, precision, mantissa = true) {
return num.toStringWithDecimalPlaces(precision)
}
function commaFormat(num, precision) {
if (num === null || num === undefined) return "NaN"
let zeroCheck = num.array == undefined ? num : num.array[0]
if (zeroCheck < 0.001) return (0).toFixed(precision)
let init = num.toString()