On 7-Jul-09, at 6:40 PM, Nicolas Cellier wrote: > I'm waiting the answer why 1.3*1.3 is different from 169/100. When > you'll have discovered this, we'll talk about 13/10 = 1.3 on more > serious bases. > > Nicolas
Well for Fraction I do (1.3*1.3 ) asApproximateFraction (169/100) because people have expectations about (1.3*1.3) = 169/100 the same expectations they likely had for (1/10) = 0.1 noting that (1/10) = 0.1 false (1/10) = (0.1 asApproximateFraction) true Personally I think here the issue is more what the different smalltalk think and do for various float to faction conversions not perhaps what is correct. Unless of course you want to drop any numerical compatibility? -- = = = ======================================================================== John M. McIntosh <[email protected]> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
