Skip to content

Temperature calculate Wrong #15

Description

@fredpalas

Looking in the class I found the calculation for temperature is wrong
Celsius and Kelvin are lineal proportional

0K = -273.15 C
So is a simple sum

K + 273.15 = C
C - 273.15 = K

on FAHRENHEIT is different because is no lineal like Kelvin

(1.80 * C) + 32 = F
(F - 32) / 1.8 = C1

For kelvin only need to convert C or from C:

(1.80 * (K-273.15) ) + 32 = F
((F - 32) / 1.8 ) + 273.15 = K

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions