Box the compass: Difference between revisions

 
Line 3,793:
for .phi in .angles {
val .i = trunc(.phi * 32 / 360 + 0.5) rem 32 + 1
writeln $"\{{.i:5}} \{{.phi:r2:6}} \{{.box[.i]}}"
}</syntaxhighlight>
 
890

edits