Temperature conversion: Difference between revisions

Added Asymptote
(Added Dart)
(Added Asymptote)
Line 664:
 
<pre>[celcius:-173.15 fahrenheit:-279.67 rankine:180.0]</pre>
 
=={{header|Asymptote}}==
<syntaxhighlight lang="Asymptote">void convKelvin(real K) {
write("K = " + string(K));
write("C = " + string(K - 273.15));
write("F = " + string((K - 273.15) * 1.8 + 32.0));
write("R = " + string(K * 1.8));
}
 
convKelvin(0.0);
write("");
convKelvin(21.0);</syntaxhighlight>
 
=={{header|AutoHotkey}}==
2,122

edits