Box the compass: Difference between revisions

(Added Easylang)
(One intermediate revision by the same user not shown)
Line 3,773:
=={{header|langur}}==
{{trans|D}}
{{works with|langur|0.6.13}}
<syntaxhighlight lang="langur">val .box = ["North", "North by east", "North-northeast", "Northeast by north",
"Northeast", "Northeast by east", "East-northeast", "East by north",
Line 3,793 ⟶ 3,792:
 
for .phi in .angles {
val .i = truncatetrunc(.phi x* 32 / 360 + 0.5) rem 32 + 1
writeln $"\{.i:5;} \{.phi:r2:6;} \{.box[.i];}"
}</syntaxhighlight>
 
Line 3,834 ⟶ 3,833:
1 354.38 North
</pre>
 
=={{header|Lasso}}==
<syntaxhighlight lang="lasso">define pointsarray() => {
890

edits