- Announcement about May 10th, 2018 update and your password.
I am trying to find an elegant and simple way to scale a 8-bit value, to a 12-bit value. I made up a simple spreadsheet to help me figure out what would work, but I cant figure out what will work. On my spreadsheet I converted the 8-bit value, to a percentage, then took that percentage and scaled it up to a 12-bit value.
X = ("8-bit value"/255)*100
"12-bit value" = (X / 100)*4095
Would someone have a simple way to take a 8-bit value, and up scale it to a 12-bit value?
I did figure out that I need to shift the bits to the left 4 places, but that is as far as I have been able to figure out.
The Feeling you get before you truely understand the situation.