Non-decimal radices/Output: Difference between revisions

Content added Content deleted
(→‎{{header|PureBasic}}: Added PureBasic)
m (→‎{header|PureBasic}: fixed formating)
Line 445: Line 445:
"Base 16: " + ("{0:X}" -f $n)
"Base 16: " + ("{0:X}" -f $n)
}</lang>
}</lang>
=={header|PureBasic}==
=={{header|PureBasic}}==
<lang PureBasic>For i=105 To 115
<lang PureBasic>For i=105 To 115
Bin$=RSet(Bin(i),8,"0") ;- Convert to wanted type & pad with '0'
Bin$=RSet(Bin(i),8,"0") ;- Convert to wanted type & pad with '0'