VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Binary Reflected Gray Code Conversion

Tom Pydeski  (16 Submissions)   Math/Dates   VB Script   Intermediate   Wed 3rd February 2021

Example to convert Decimal to Binary Reflected Gray Code.
I did some poking around and found some info, but could not find any examples in visual basic. I took the C examples and converted them to VB.
I only tried it up to a byte leve(255)
Can probably easily be changed to convert integers and larger, but for my purpose, 255 was enough.

Inputs
Enter either a decimal or gray code

Assumes
see above

Returns
the converted gray code or decimal value

Rate Binary Reflected Gray Code Conversion (4(4 Vote))

Download Binary Reflected Gray Code Conversion

Binary Reflected Gray Code Conversion Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters