given a floating point value, what is the smallest floating point value that when arithmetically added to it, does increase that given value (e.g. a smaller value added to it is too small to increment it given the working precision). i need a function that comes up with that smallest adder.
edit:
i believe i have such a function in C. but i suspect it makes use of some C library stuff. i don't how well that would translate to Python. i hope that == for comparing float to float always compares for exact equal. then i can write my own if there isn't one readily available.
edit:
i believe i have such a function in C. but i suspect it makes use of some C library stuff. i don't how well that would translate to Python. i hope that == for comparing float to float always compares for exact equal. then i can write my own if there isn't one readily available.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.