"Parse" float and double to a structure, and given a specific value, you can get the nearest bigger and smaller value.