thank u so much for this amazing video but i have a question on the program that u have made float b = 0.1f ; gives an output of 0.10000000149011611938 is the trailing value after 0's (149011611938) belongs to b or just a garbage value because floats precision are between 6 and 9 digits according to cppreference so where (149011611938) is stored ? or is it just garbage ? thank u
@akashmurthy2 жыл бұрын
That's a very interesting question! i don't know the answer to that. But it's not dependent on the memory address that the floating point bytes are in. Since, it'll give you the same output of 0.10000000149011611938 any number of times, or on any machine. Seems to be that error is an intrinsic part of the number format itself.