Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
fun KtoC n = n - 273.15;
|
||||
fun KtoF n = n * 1.8 - 459.67;
|
||||
fun KtoR n = n * 1.8;
|
||||
val K = argv 0;
|
||||
|
||||
if K = false then
|
||||
println "mlite -f temcon.m <temp>"
|
||||
else
|
||||
let
|
||||
val K = ston K
|
||||
in
|
||||
print "Kelvin: "; println K;
|
||||
print "Celcius: "; println ` KtoC K;
|
||||
print "Fahrenheit: "; println ` KtoF K;
|
||||
print "Rankine: "; println ` KtoR K
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue