Doug Collinge schreef: > If you subtract 4294967196 from 200 you get -4294966996 in integer > arithmetic, which I think is what you are worried about. > > But if you use 32 bit unsigned subtraction, which is available in may > programming languages (and mysql, too, if I recall correctly) then the > answer is 300, which is the answer that you want, the number of counts > between samples.
I couldn't find unsigned calculations in bash so it's for the C version, thanks for pointing it out Doug. ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
