*/
Written some cool source code? Upload it to Programmer's Heaven.
*/

Decimal to Binary Convert

*/

Decimal to Binary Convert

Submitted By: Nad__Af
Rating: starstarstarstarstar (Rate It)

You can convert any decimal number to its equivalent binary
representation, you can even convert the decimal number "9,
999, 999, 999, 999, 999, 999, 999, 999, 999" (28-digit) to
binary. Thanks to "Decimal" data type in Visual Basic and
VB.NET. You can also change the input value Num to any VB valid
data type: Byte, Long, Integer ..etc Furthermore, this function
is fast, Unlike other functions that use RECURSIVE CALLING
algorithm that wastes the time pushing/popping onto/from the
stack.


NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot

No Image

Details

File Name:
26783.zip
Product homepage:
Order page:
Languages:
Basic, Visual Basic
Platforms:
Unknown
Release date:
4/4/2003
License:
Unknown
Size:
720 Bytes
Price/Fee (US$):
Unknown
Number of downloads:
5970

Comments (1)

Very useful utiltiy, here's a twist starstarstarstarstar   Posted by: Dave on Saturday, January 17, 2004

instead of the Do Until loop, use a for-next loop to keep ALL desired bits showing, not just from the MSB and to its right. For example, I used this code to convert data from a home-made 8-bit ISA port to a binary display type, and I needed all 8 bits to show, no more, no less. I ran a for-next from 1 to 8, and got what I needed.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.