Box the compass: Difference between revisions

Content added Content deleted
 
Line 3,793: Line 3,793:
for .phi in .angles {
for .phi in .angles {
val .i = trunc(.phi * 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>