In article <2026…@mips.complang.tuwien.ac.at>,
Anton Ertl <ant…@mips.complang.tuwien.ac.at> wrote:
>dxf <dxfo…@gmail.com> writes:
>>On 14/10/2026 7:25 pm, Anton Ertl wrote:
>>> What is an "imprecise number"? In any case, every FP number has a
>>> precise value. It may not be the value you are interested in, but
>>> that does not make the value any less precise. And thinking about FP
>>> numbers as "imprecise" or intervals etc. leads you down the path to
>>> wrong conclusions.
>>
>>If the recently-dubbed "high quality" REPRESENTs aren't printing out
>>intervals then what are they doing? Following the leader?
>
>If you give a precise REPRESENT a big-enough buffer, it gives you the
>decimal representation of the floating-point value, exactly.
>
>If you give it a buffer that's too short for the exact representation,
>you get a rounded result, rounded to the nearest decimal number that
>fits in the buffer.
>
>It seems pretty obvious to me that REPRESENT (whether high-quality or
>not) does not output an interval. An interval is indicated by two
>numbers, REPRESENT only outputs one.
A fp number represents a rational range, it nominal value plus or minus
half an ulp.
>
>- anton
--
The Chinese government is satisfied with its military superiority over USA.
The next 5 year plan has as primary goal to advance life expectancy
over 80 years, like Western Europe.