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:
parent
60959c24df
commit
2be5e505aa
|
@ -2160,6 +2160,8 @@ evalUnit (char *unit, tdble *dest, int invert)
|
||||||
coeff = 1000.0f; /* N */
|
coeff = 1000.0f; /* N */
|
||||||
} else if (strcmp(unit, "cc") == 0) {
|
} else if (strcmp(unit, "cc") == 0) {
|
||||||
coeff = 0.001f; /* l */
|
coeff = 0.001f; /* l */
|
||||||
|
} else if (strcmp(unit, "ci") == 0) {
|
||||||
|
coeff = 0.0163871f; /* l */
|
||||||
} else if (strcmp(unit, "C") == 0) {
|
} else if (strcmp(unit, "C") == 0) {
|
||||||
if (invert)
|
if (invert)
|
||||||
*dest -= ZEROC; /* Kelvin to Celsius */
|
*dest -= ZEROC; /* Kelvin to Celsius */
|
||||||
|
|
Loading…
Reference in New Issue