Convert a Decimal Number to Binary

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate
Author:
Russell Phillips

Version Compatibility:

More information:
This is a function that will convert an integer to a binary string using a method which I learned in maths not long ago.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: