Decimal to Hexadecimal

I've mounted a system that uses a latch and a shift register to send values to 4 7-segment displays.

The displays show whatever is sent to them, but on a hexadecimal base. I need to send a __int16 number, but it's conversion has to show only decimal digits. For instance, if I sent a sequency from 7 to 12 in decimal, it would bring:

I'm not sure I understand the question, so I am going to restate it and ask if my interpretation is correct.

Given an integer m, calculate an integer n such that the representation of m in decimal is the same numeral sequence as the representation of n in hexadecimal.

The application is that you have a number m you want to display and an output device that shows the hexadecimal representation of the number, but you want to be able to read the value from the device in decimal. To do that, you would apply the algorithm and send n to the device.

I don't need to be showing any results, I basically only need an algorithm that will output 7, 8, 9, 16, 17, 18 and so on (witch would be 7, 8, 9, 10, 11, 12 and so on).
here's an example that would work out only up to 153 in decimal (99 in hex)

Everytime the auxiliar reaches 10, it adds 6 to sendvalue to skip the char digits in hexadecimal. Unfortunatelly the code above only works up to 99 in hex, because 99 in hex is equal to 153 in decimal, and 100 in hex (witch should be the next number to be displayed) is equal to 256 in hex.

You may use the built-in functions for this. Suppose your number is 14.
First, you convert it into a string, "14".
Then you add "0x" in front, so it becomes "0x14".
And then you use the sscanf function to convert it into the respective decimal integer, which is 20.

If this is the correct interpretation of the problem, the remaining problem is to write the hasHexDigit function. A hex digit is represented by four bits, so it will be convenient to do this with bit manipulation. Example pseudocode:

This design is somewhat inefficient, since once it hits 0xA, it is not smart enough to skip to 0x10. You could remedy that by having hasHexDigit identify which nibble had the hex digit. Then the main loop could add 6 to that nibble to skip past the next set of numbers it would skip anyway.

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…

The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.