@NGH6425 wrote:
I attached an example for you to review if you are more of a visual person.
A picture is not an example.
(formatting to a string and scanning back to DBL is relatively expensive. You might just compare the string for equality if you go this way. Scanning back to DBL gets you the same limitations again, for example if the input is 0.10, the resulting DBL cannot be represented with the given number of mantissa bits of the DBL repesentation).