Hair wrote:
I got bored and noticed this command didnt exist for bat, so I wrote
one for tinyfugue. Be aware, non-number values are treated as 0.
syntax is f2c <some number> and c2f <some number> no leading / is
required. Also ignore the leading ' its there so i can paste in
without tf thinking i am doing something.
'/DEF -ag -h"send {f2c}*" fahrenheit_to_Celsius = \
' /IF (%{-1}==0 | %{-1} != "") \
' /LET _C=$[(%{-1}-32)*(5.0/9.0)] %; \
' /ECHO -aBCyellow %{-1} degrees fahrenheit = %{_C} degrees Celsius %; \
' /ELSE /ECHO Enter degrees fahrenheit to convert to Celsius %; \
' /ENDIF
'
'/DEF -ag -h"send {c2f}*" Celsius_to_fahrenheit = \
' /IF (%{-1}==0 | %{-1} != "") \
' /LET _f=$[(%{-1}*(9.0/5.0))+32] %; \
' /ECHO -aBCyellow %{-1} degrees Celsius = %{_f} degrees fahrenheit %; \
' /ELSE /ECHO Enter degrees Celsius to convert to fahrenheit %; \
' /ENDIF
--Hair
help convert
convert 40 celsius to farenheit
40.0 celsiuses is 104.0 fahrenheits.
o_o