The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GrayCode


Unit:SDL_math1
Class:None
Declaration:function GrayCode (InNum: word): word;

The function GrayCode converts the 16-bit unsigned integer number InNum into the corresponding Gray code.

Example: write (Bin (GrayCode(i),16)); displays the binary representation of the Gray code of the unsigned integer i.


Last Update: 2023-Feb-06