add conversion from cubic inches to liters

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9231 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
iobyte 2023-12-18 23:24:03 +00:00
parent 60959c24df
commit 2be5e505aa
1 changed files with 2 additions and 0 deletions

View File

@ -2160,6 +2160,8 @@ evalUnit (char *unit, tdble *dest, int invert)
coeff = 1000.0f; /* N */
} else if (strcmp(unit, "cc") == 0) {
coeff = 0.001f; /* l */
} else if (strcmp(unit, "ci") == 0) {
coeff = 0.0163871f; /* l */
} else if (strcmp(unit, "C") == 0) {
if (invert)
*dest -= ZEROC; /* Kelvin to Celsius */