Comment on Can LLMs do randomness?parentComments−simulator5g1yHow is that any different? 1+(2+3) = 6(1+2)+3 = 60.000001+(200000+300000) = 500000.000001(0.000001+200000)+300000 = 500000.000001−david-gpu1yYou need to take it a step further, since e.g. 64-bit floats have a ton of mantissa bits.Here's an example in python3. >>> "{:.2f}".format(1e16 + (1 + 1)) '10000000000000002.00' >>> "{:.2f}".format((1e16 + 1) + 1) '10000000000000000.00'−enriquto1ytake b and c with opposite signs
Comments
How is that any different? 1+(2+3) = 6
(1+2)+3 = 6
0.000001+(200000+300000) = 500000.000001
(0.000001+200000)+300000 = 500000.000001
You need to take it a step further, since e.g. 64-bit floats have a ton of mantissa bits.
Here's an example in python3.
take b and c with opposite signs