Box the compass: Difference between revisions

m
(Added various BASIC dialects (Chipmunk Basic, GW-BASIC, MSX Basic and Quite BASIC)))
m (→‎{{header|Wren}}: Minor tidy)
Line 7,702:
{{trans|Go}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
// 'cpx' returns integer index from 0 to 31 corresponding to compass point.
Line 7,765:
var index = i%32 + 1 // printable index computed per pseudocode
var d = degreesToCompassPoint.call(h)
SystemFmt.print("%(Fmt.d(4,$4d index)) $-19s %(Fmt$7.s(-192f°", index, d)) %(Fmt.f(7, h,) 2))°")
i = i + 1
}</syntaxhighlight>
9,476

edits