Anonymous user
Temperature conversion/REXX: Difference between revisions
m
added whitespace.
m (→{{header|REXX}}: added a comment that wasn't pasted, optimized a subroutine.) |
m (added whitespace.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 2:
Note that conversion from/to the '''Dalton''' temperature scale requires natural logarithms ('''ln'''), and the '''pow''' function.
<lang rexx>♀/*REXX program converts temperatures for fifty─eight different temperature scales. */▼
No commenting/explaining was affixed to the higher math functions because it would detract from the logic of the main program.
<span style='font-family: "Linux Libertine",Georgia,Times,serif;font-size:150%;'>[[REXX]]</span><hr>
/*
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Line 238 ⟶ 243:
return
Line 283 ⟶ 287:
abbrev('CELISU' , yU) |, /* 1% misspelled.*/
abbrev('CELSU' , yU) |, /* 1% misspelled.*/
abbrev('HECTOGRADE' , yU) |,
abbrev('CELSIU' , yU) then sn= "CELSIUS"
when abbrev('CIMANTO' , yU,2) |,
|