Download Game! Currently 79 players and visitors. Last logged in:ShenleungLiandrewConquerMmp

BatMUD Forums > Bs > Re: I got bored

 
 
#1
30 Jan 2013 15:30
 
 
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

 
 
 
Hair
N e w b i e  H e l p e r
2y, 251d, 1h, 30m, 6s old
Level:
96
 
 
#2
30 Jan 2013 15:32
 
 
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

-- Lord Tarken Aurelius, the Sage

 
Rating:
5
Votes:
5
 
 
Tarken
W i z a r d
3y, 182d, 16h, 31m, 18s old
Level:
145 [Wizard]
 
 
#3
30 Jan 2013 15:32
 
 
Tarken wrote:
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
convert 64 F to C

 
Rating:
1
Votes:
1
 
 
Lyriikka
2y, 45d, 14h, 16m, 22s old
Level:
99
 
 
#4
30 Jan 2013 15:35
 
 
Tarken wrote:
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
Yes, several people have pointed this out to me already, thanks.
But still something to do to waste a couple minutes in the morning
at work instead of, i dunno....working ;p

--Hair

PS Tinyfugue RULES!

 
Rating:
3
Votes:
3
 
 
Hair
N e w b i e  H e l p e r
2y, 251d, 1h, 30m, 6s old
Level:
96