From e95ab6c3223f762ef82d8cc0d5a00abb41cf2b6e Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 13 Jun 2023 21:24:00 -0700 Subject: [PATCH] Added tonne prefixes --- buildscript/units.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildscript/units.toml b/buildscript/units.toml index d023641..12eb3df 100644 --- a/buildscript/units.toml +++ b/buildscript/units.toml @@ -661,7 +661,8 @@ base_units = [ { u = "Gram", p = 1}, { u = "Second", p = -2}, { u = "Meter", p = [[unit]] enum_name = "Calorie" strings = [ - ["cal"], ["calorie"], ["calories"] + ["cal", "","k"], + ["calorie"], ["calories"] ] base_value_type = "exact" @@ -820,7 +821,8 @@ base_units = [ { u = "Gram", p = 1}, { u = "Meter", p = 2}, { u = "Second", p = [[unit]] enum_name = "Tonne" strings = [ - ["t"], ["tonne"], ["tonnes"], ["ton"], ["tons"] + ["t", "","k","M","G"], + ["tonne"], ["tonnes"], ["ton"], ["tons"] ] base_value_type = "exact"