Temperature conversion

Revision as of 06:27, 20 February 2021 by Drkameleon (talk | contribs) (Replaced content with "=={{header|Arturo}}== <lang rebol>convertKelvins: function [k][ #[ celcius: k - 273.15 fahrenheit: (k * 9/5.0)-459.67 rankine: k * 9/5.0...")

Arturo

<lang rebol>convertKelvins: function [k][

   #[
       celcius:    k - 273.15
       fahrenheit: (k * 9/5.0)-459.67
       rankine:    k * 9/5.0
   ]

]

print convertKelvins 100</lang>

Output:
[celcius:-173.15 fahrenheit:-279.67 rankine:180.0]