IonicWind Software

IWBasic => IWB3.x Bug Reports => IW2.0 Bug Reports => Topic started by: BJ on March 31, 2011, 09:57:14 PM

Title: Converting floating-point into a string results in "f"
Post by: BJ on March 31, 2011, 09:57:14 PM
With the latest release run this.  Each will output "f" if it has a mantissa > 0, with or without optimizations on.  It works just fine with the release directly preceding this one.

DOUBLE d = 1.1
PRINT STR$( d )
d = 1.0
PRINT STR$( d )
PRINT

FLOAT f = 1.1
PRINT STR$( f )
f = 1.0
PRINT STR$( f )
PRINT

PRINT STR$( 1.1 )
PRINT STR$( 1.0 )


EDIT:
Found the actual issue.  It was caused by this code: $USE "ntdll.lib"
Title: Re: Converting floating-point into a string results in "f"
Post by: talun on April 01, 2011, 12:20:14 AM
Works fine here (no "f" in the output).

Have you updated your compiler version?

Sergio
Title: Re: Converting floating-point into a string results in "f"
Post by: BJ on April 01, 2011, 12:31:44 AM
There's a new one uploaded on "Mar 30, 8:17".  Just in case I was wrong I downloaded it again.  I get the same issue.

Cheers.
Title: Re: Converting floating-point into a string results in "f"
Post by: LarryMc on April 01, 2011, 04:14:23 AM
Works fine for me with same download version in XP SP3

LarryMc
Title: Re: Converting floating-point into a string results in "f"
Post by: BJ on April 01, 2011, 04:21:54 AM
Geez.  You're right.  I deleted the "iwbdev" folder entirely then reinstalled, now everything is fine.

My mistake.  Sorry.  I am not sure what I did at some point.   :-[

EDIT:

Actually, I found out what caused it.  I had installed the old ccProject.incc into the bin folder.
This contains the line: $USE "ntdll.lib", which is the problem for me even with a fresh install.
Title: Re: Converting floating-point into a string results in "f"
Post by: LarryMc on April 01, 2011, 04:53:28 AM
The important thing is you got it resolved. ;)

LarryMc