I have a weird math and semi-programming related question.
When dealing with integers, it's generally easy to, for example, say "2, 4, 8, 16, 32, 64, 128, 256, 512..." etc. There's a huge range of numbers from 0 to infinity.
However, when dealing with APIs that require floats between 0 and 1, for the first time, I truly realized that there is an entirely different world in between 0 and 1, all of which are reciprocals of some integer. I'm not used to dealing with them... I can say "0.5, 0.25, 0.125, 0.0625..." and then I can't go farther at all.
How do I go about mastering the world between 0 and 1? It's easy for me to say, "I need the color 121, 39, 190, 255" but then it's really hard to be so precise when dealing with floats from 0 to 1.
Or does everyone just take the lazy way and do 121/255f, 39/255f, 190/255f, 255/255f?