Snippets Project Page
Author: entropy
Added: 5y
Updated: 5y
mIRC: 7.52+
Hits: 1,741
Downloads: 18
Review: entropy
Size: 436B
3 0
Login to vote.
Convert Celsius/Farenheit
v1.0
Like the snippet explains, it converts celcius and ferenheit.
Download
JSON
▲ Review
▼ Source
; Convert Celsius/Farenheit v1.0 - by entropy 2017 ; Example: /convert_f 80 -or- /convert_c 28 - etc... alias convert_f { var %f, %c %f = $1 %c = $round($calc((5 / 9) * (%f - 32)),1) echo -a * %f degrees farenheit equals %c degrees celsius } alias convert_c { var %f, %c %c = $1 %f = $round($calc((9 / 5) * %c + 32),1) echo -a * %c degrees celsius equals %f degrees farenheit }
Changelog:
0
0