well, as a physicist i am tempted to answer “yes”.
you can think of atoi as a non injective function that goes from char to int, where both “0.001” and “0” go to the same value: 0. in that sense, 0.001 and 0 are “the same”
well, as a physicist i am tempted to answer “yes”.
you can think of atoi as a non injective function that goes from char to int, where both “0.001” and “0” go to the same value: 0. in that sense, 0.001 and 0 are “the same”
Thanks!