I threw together two quick aliases for temperature conversion in mIRC. The one for going from Fahrenheit to Celsius works just fine, but going from Celsius to Fahrenheit gives me the error "* /echo: insufficient parameters (line 11, remote.ini)".
Here are the aliases.
;This one works
alias ftoc {
if ($1 isnum) {
echo $calc(($1 - 32) * 5 / 9)
}
}
;This one does not
alias ctof {
if ($1 isnum) {
echo $calc($1 * 9 / 5 + 32) ;This is the line that throws the error
}
}
Strangely enough, if I switch the "5" and "9" in the equation of the failing alias, it does work, though obviously doesn't give me the desired output. What is going on here? How should I write these so that they will work?