Advertisement
Lateralus138

Temperature Conversion Function For AutoHotkey

Jun 13th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. temp_conversion(temp,passedtype := "f",round := 2)  ; defaults to f being passed
  2. {   if passedtype not in f,c,fahrenheit,celcius     ; change if you wish :D
  3.         return
  4.     return  ((passedtype="f" Or passedtype="Fahrenheit")
  5.         ?   round((temp-32)/1.8,round)
  6.         :   round((temp*1.8)+32,round))
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement