Box the compass: Difference between revisions

Content added Content deleted
Line 3,792: Line 3,792:


for .phi in .angles {
for .phi in .angles {
val .i = trunc(.phi x 32 / 360 + 0.5) rem 32 + 1
val .i = trunc(.phi * 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>