Hello! I have discovered a strange (at least so it seems to me) behaviour of Sage. Here is the problem:
I have a list of tuples of the following format: (2000, 289.428000000000) (2001, 289.557000000000) (2002, 289.605000000000) (2003, 289.617000000000) (2004, 289.594000000000) (2005, 289.624000000000) (2006, 289.575000000000) (2007, 289.547000000000) (2008, 289.479000000000) (2009, 289.586000000000) And also I have two functions to work with these data: def GT(t): number = floor(t-global_temperature[0][0]) return global_temperature[number][1] def dGT(t): number = floor(t-global_temperature[0][0]) return (global_temperature[number+1][1] - \ global_temperature[number] [1]) And when I execute the simple code: print(GT(2006), GT(2003), dGT(2006)) I get the following strange result: (289.575000000000, 289.617000000000, -0.0280000000000200) My question is: where do those low order digits come from? And how can I get rid of them? Thank you. Vladimir ----- <v...@ukr.net> -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org