Binary digits: Difference between revisions

From Rosetta Code
Content added Content deleted
(initial draft)
 
Line 9: Line 9:
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.
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.


[[Category:Basic language learning]]
[[Category:Radices]]
[[Category:Radices]]

Revision as of 17:12, 6 July 2011

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 task is to output the set of binary digits for a given non negative decimal integer.

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.