Re: [q-lang-users] Q 7.2 RC1 Issue 2: Notation
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-06-24 17:01:11
|
Albert Graef scripsit: > John, it would be nice if you (and everyone else who cares about the > numeric stuff) could once again apply a bit of torture to the > float/rational/complex arithmetic to see if everything now works as you > proposed and we discussed. ;-) There have been quite a few changes, so > I'd really appreciate your feedback. :c I'll try to do this in the next few days. As yet I haven't had a chance to build RC2 today. > Therefore one could argue that in Q, following the principle of the > least surprise, one should expect that (/) _always_ denotes inexact > division and thus 12%1/8 should return 1.5 just like 12/8. This would > also be consistent with the behaviour of (^) which also returns inexact > values for all combinations of operands. I prefer this behavior: % produces exact results always, / produces inexact results always. (This implies that (1+2*i)/(3+4*i) is also inexact.) -- John Cowan <co...@cc...> http://www.ccil.org/~cowan .e'osai ko sarji la lojban. Please support Lojban! http://www.lojban.org |