Snippets
  • Uploaded By: entropy
  • Author: entropy
  • Added: 5 months ago
  • Updated: 5 months ago
  • mIRC Version: 7.52+
  • Hits: 182
  • Size: 408B
  • Downloads: 2
  • Review By: entropy



Convert Celsius/Farenheit v1.0

Like the snippet explains, it converts celcius and ferenheit.
Screenshot...

  
  2    0  Login to Vote.


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.

Login to Comment.