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