Binary digits: Difference between revisions

m
Line 1,498:
9000 -> 10001100101000</pre>
 
Or, if we need more flexibility with the set of digits used, we can write a version of showIntAtBase which takes a more specific Int -> Char function as as an argument. This one is a rough translation of Haskell's Numeric.showIntAtBase:
 
<lang JavaScript>(() => {
9,659

edits