Box the compass: Difference between revisions

Content added Content deleted
(Added Easylang)
Line 3,773: Line 3,773:
=={{header|langur}}==
=={{header|langur}}==
{{trans|D}}
{{trans|D}}
{{works with|langur|0.6.13}}
<syntaxhighlight lang="langur">val .box = ["North", "North by east", "North-northeast", "Northeast by north",
<syntaxhighlight lang="langur">val .box = ["North", "North by east", "North-northeast", "Northeast by north",
"Northeast", "Northeast by east", "East-northeast", "East by north",
"Northeast", "Northeast by east", "East-northeast", "East by north",
Line 3,793: Line 3,792:


for .phi in .angles {
for .phi in .angles {
val .i = truncate(.phi x 32 / 360 + 0.5) rem 32 + 1
val .i = trunc(.phi x 32 / 360 + 0.5) rem 32 + 1
writeln $"\.i:5; \.phi:r2:6; \.box[.i];"
writeln $"\{.i:5} \{.phi:r2:6} \{.box[.i]}"
}</syntaxhighlight>
}</syntaxhighlight>


Line 3,834: Line 3,833:
1 354.38 North
1 354.38 North
</pre>
</pre>

=={{header|Lasso}}==
=={{header|Lasso}}==
<syntaxhighlight lang="lasso">define pointsarray() => {
<syntaxhighlight lang="lasso">define pointsarray() => {