Re: pretty_print bug
- Posted by Al Getz <Xaxo at aol.com> Jun 26, 2004
- 467 views
Hello, It appears that Misc.e confuses a Euphoria integer with an actual whole number, something that is a bit of an annoyance One way around this is to do 'something' like this: around line 110 in misc.e... in function rPrint(object a)... replace:
if integer(a) then sbuff = sprintf(pretty_int_format, a)
with:
if a-floor(a)=0 and -#FFFFFFFF<=a and a<=#FFFFFFFF then sbuff = sprintf(pretty_int_format, a)
I'll have to do something like that in my "pretty_sequence" include file also and resubmit it to RDS. It's good that you found this problem! Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"