4
woops
6y

Using API to get todays weather.
The value i get is 293.some other decimals.

Well, i guess i have to manipulate that float.
Converting it to string, moving the dot and convert it again to float so i can have the number in a form i need it, which is 29.decimals.
Hm...
Re reading the docs, and i find out the value is in Kelvin.
FUCKIN KELVIN
WHO THE FUCK USES KELVIN

Comments
  • 5
    Well it's the SI unit of temperature
  • 4
    I don't get why you would need to manipulate this as a string to move the decimal?
  • 1
    because it was late at night and i wanted to move the floating point and that's the way i thought about which was very hacky and overcomplicated.

    Ended re reading the docs and finding out i can use units parameter to get it in Celcius.

    Didn't even know that was the standard.
Add Comment