[q-lang-users] Unparse on Rationals
Brought to you by:
agraef
From: Rob H. <hub...@gm...> - 2006-06-22 00:32:41
|
At the moment, unparse on (positive) Rational values always produces a value of the form N%D (well, pending the change to (%) from (over) anyway). Is this what is really desired? I wondered whether it would be preferable to present, for example: 3%1 as just 3 The LHS has the advantage of looking like the rational it is The RHS is clearly simpler 11%5 as 2+1%5 The LHS is simpler this time The magnitude of the RHS more obvious (i.e. that it's "2 and a bit") I prefer the RHS in both cases. Comments welcome. Thanks, Rob. |