mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 18:01:59 +03:00
🧹 [code health] Refactor pseudo-code comment in unitdata.ts to avoid linter warnings
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
parent
bede889ced
commit
00a225fc22
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ export const UNIT_DATA: UnitData[] = [
|
||||||
{ id: "centner", category: "Weight", dimension: "weight", ratio: "100000" },
|
{ id: "centner", category: "Weight", dimension: "weight", ratio: "100000" },
|
||||||
{ id: "ounce", category: "Weight", dimension: "weight", ratio: "28.349523125" },
|
{ id: "ounce", category: "Weight", dimension: "weight", ratio: "28.349523125" },
|
||||||
|
|
||||||
// Temperature (base: kelvin); base = value*ratio + offset
|
// Temperature (base: kelvin). Formula: base equals value times ratio plus offset
|
||||||
{ id: "celsius", category: "Temperature", dimension: "temperature", ratio: "1", offset: "273.15" },
|
{ id: "celsius", category: "Temperature", dimension: "temperature", ratio: "1", offset: "273.15" },
|
||||||
{ id: "fahrenheit", category: "Temperature", dimension: "temperature", ratio: String(5 / 9), offset: String((459.67 * 5) / 9) },
|
{ id: "fahrenheit", category: "Temperature", dimension: "temperature", ratio: String(5 / 9), offset: String((459.67 * 5) / 9) },
|
||||||
{ id: "kelvin", category: "Temperature", dimension: "temperature", ratio: "1" },
|
{ id: "kelvin", category: "Temperature", dimension: "temperature", ratio: "1" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue