5:48:15 am - Saturday August 18th, 2018
Search:     
Downloads
Support
Portal
Stats
  • Total Hits: 116,636
  • Today's Hits: 91
  • Most Hits: 7/6/2018
  • Dynamic Hits: 2,661
  • Total Downloads: 424
  • Today's Downloads: 0
  • Newest: Brian
  • Members Online: 4/39
  • Guests Online: 7
Affiliates










Snippets



Convert Celsius/Farenheit v1.0

Like the snippet explains, it converts celcius and ferenheit.

Uploaded By: entropy
Author: entropy
Added: 7/6/2018
Last Updated: 7/6/2018
mIRC Version: 7.52+
Hits: 47
Size: 408B
Downloads: 2
Review By: entropy


  
  2    0


Source Code:
  1. ; Convert Celsius/Farenheit v1.0 - by entropy 2017
  2. ; Example: /convert_f 80 -or- /convert_c 28 - etc...
  3.  
  4. alias convert_f {
  5. var %f, %c
  6. %f = $1
  7. %c = $round($calc((5 / 9) * (%f - 32)),1)
  8. echo -a * %f degrees farenheit equals %c degrees celsius
  9. }
  10. alias convert_c {
  11. var %f, %c
  12. %c = $1
  13. %f = $round($calc((9 / 5) * %c + 32),1)
  14. echo -a * %c degrees celsius equals %f degrees farenheit
  15. }


Comments
No Comments.