Re: Phix 1.0.2 uploaded
- Posted by petelomax Mar 24, 2023
- 1325 views
RobertS said...
This is such a minor issue that I honestly do not know if it's worth bothering anyone with it.
Nonsense - that's an out-and-out bug if ever I saw one, you'll be pleased to know with an easy fix:
builtins\VM\pprntfN.e ~line 264 said...
k = find('!',result) if k then -- if k=length(result) then -- result = result[1..-2] -- else result[k] = '.' --24/3/23! result = result[1..-2] -- end if exponent += 1 end if
What it's done is printed off a number as "9.999999" (note 6 d.p.) before realising it wants rounding, which gets it "10.000000", at which point it
realises it'll have to mess with the decimals and bump the exponent, so it returns "1!0000000" to signal that, but wasn't cropping the extra digit.
Thanks for reporting this!