Binary digits

Revision as of 17:10, 6 July 2011 by rosettacode>Markhobley (initial draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The task is to output the set of binary digits for a given non negative decimal integer.

Binary digits is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

The decimal value 5, should produce an output of 101 The decimal value 50 should produce an out of 110010 The decimal value 9000 should produce an output of 10001100101000

The results can be achieved using builtin radix functions within the language, if these are available, or a user defined function can be utilized. The output produced should consist just of the binary digits. These should be no whitespace, radix or sign markers in the produced output, and superfluous leading zeros should not appear in the results.