Re: Phix, numbers, printf, log10
- Posted by RobertS in February
- 812 views
petelomax said...
RobertS said...
petelomax said...
OK, I've aligned the "fwk" side with the "(f-digit)*10" side and got rid of fadj, and pushed all this to https://raw.githubusercontent.com/petelomax/Phix/master/builtins/VM/pprntfN.e which you may find much easier:
printf(1, "%e", 38.24)
3.802400e+1
I missed a *10, new version at same link
Yes, this works, thank you!
But, after I rebuilt Phix, p -test now says:
Testing[64]: C:\Phix\test\t64struct.exw
constructor five(5) called
destructor ~five(5) called
diag looping, error code is 1, era is #00817857
exception code #C0000005 at #0000000000830734
etc.
I have no idea what this means, and I haven't noticed anything not working, but I thought I should let you know.
Thank you again for all your great work!
Robert