answersLogoWhite

0

In order to convert decimal to gray code use an array of int containing either a one or a zero at each position. A BitArray could also be used and might be a better choice.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you convert excess-3 to gray code?

help PLA use convert excess-3 to gray code


What is the gray code of decimal 7?

0100


How do you convert character to decimal integer?

In Excel it is the "code" function. For example, Code("A") = 65


Program to convert bcd to gray code using 8051 microcontroller.?

66666


BCD to Gray Code Converter?

BCD refers to Binary Code Decimal there are no diagrams it is just a numbers system GRAY code is a means to make one reliable state to change at a time eliminating false coding because of transitions in counters and such


How do you convert n-bits binary to gray code?

The best way is with a lookup table.


Which is the gray code for number 6 in four bit formate?

The gray code for the decimal number 6 in four-bit format is 1011. To convert from binary to gray code, the most significant bit (MSB) remains the same, and each subsequent bit is derived by XORing the current bit with the previous bit in the binary representation. The binary representation of 6 is 0110, which converts to gray code as follows: 0 (MSB), 1 (0 XOR 1), 1 (1 XOR 1), 1 (1 XOR 0), resulting in 1011.


How do you convert 3.5 into a decimal?

You cannot convert a decimal into a decimal!


How do you convert to a decimal 0.2?

0.2 already is a decimal. There is nothing to convert.0.2 already is a decimal. There is nothing to convert.0.2 already is a decimal. There is nothing to convert.0.2 already is a decimal. There is nothing to convert.


What is 97 in binary code?

You can easily convert decimal to binary in the scientific calculator - for example, the scientific calculator found in Windows. In this case, type the number in decimal, then click on "binary" to convert to binary.


How do you convert 29.53 to a decimal?

Convert 29.53 to decimal


How do you get a convert a decimal into a percent?

multiply the decimal by 100 to convert it into a percent.