> On 10/2/07, Raul Miller <[EMAIL PROTECTED]> wrote:
>
>> It seems to me that if a number displayed with the digits
>> indicated by 9!:10 has exactly the same bit pattern as that
>> number displayed to full precision then the more concise
>> variant should be used.
>>
>> Currently, we get:
>>
>>   6.3&]
>> 6.2999999999999998&]
>
Raul:

For printing a floating point number, J has simply to round it to a
fixed number of significant digits. It does not have to consider other
decimal numbers with the same bit pattern.

What you are suggesting seems considerably more complicated: it would
require J to take a floating point number and, among all decimal
numbers with the same bit pattern, select the one with the fewest
significant digits.

In my opinion, this a large price to pay for a cosmetic improvement.
However, I may be misunderstanding what you are saying.


Best wishes,

John



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to