Converting the Temp.

ihatetn931

Well-Known Member
How would i go about converting

Code:
dayz_temperature

That variable to show Fahrenheit instead of celsius, i know it's gotta be some kind of math but i'm not to sure how to do that. I wanna put it on my debug monitor so players that dunno how to read Celsius can also seen their temp in Fahrenheit. So it would show your temp in both Fahrenheit and Celsius, i know how to add it just dunno how to do the math for it.

I got this but how to i add it to do this?
Code:
Multiply by 9, then divide by 5, then add 32
 
Ahh I figured it out, prolly not the best way to do it but it works.

Code:
(dayz_temperatur*9/5+32)

temp_zps1e1f6c5d.png
 
Back
Top