You did, but that's neither here nor there.
I havn't rejected anything but havn't seen a complete solution so far.
I also said that the [...] thing you just did.
Okay, so you say you want to store a single 'float' value that represents... something, a "thickness" you say, in a class containing a quartet of 'float' values ranging from 0-255 representing a RGBA color reference of the associated pixel in a bitmap?
I want to store a [...] by some logic.
I'll tell you what I don't understand: why you'd want to pollute one representation with another, why you think that it is going to be faster relying on this pollution, why you alter the requirements, why we can't get a reasonable set of requirements, why you didn't tell us beforehand the latest offered requirements... the list goes on.
What is there to not understand?
Okay, so something like the code below?
While calculating you would [...] then store sets of 2 digits in each color channel.
What do you mean it isn't a high enough number? You need a big number? What for? Earlier you said three decimals is fine, what happened to that?
That is not a high enough [...] in some way to increase the number.
Something like this, or exactly this? What happened to the storage requirement?
This is just a simple example, there is probably a better way, but something like this is what I want to do.
So all you want to do is store a single 32 bit floating point value in a class with four floating point values each capable of representing values corresponding to the 8 bit range? Easy, and you have been offered the solution multiple times! All that needs to change: passing the four bytes you get to the class which stores each byte as a separate channel of the RGBA value.
Yeah that is pretty much [...] value is on a 3d object.
float joined_value((255.0f * 1000.0f) + thickness);
float restored_alpha(std::floor(std::fmod(joined_value / 1000.0f, 1000.0f)));
float restored_thickness(std::floor(std::fmod(joined_value, 1000.0f)));
std::cout << restored_alpha << '\n';
std::cout << restored_thickness << '\n';