Forums › Forums › SIMPOL Programming › .tostr bug
- This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by Michael.
- AuthorPosts
- January 9, 2014 at 7:16 am #23Jim LockerMember
Awhile back, I reported a bug where, if iVal = 0 then sVal = .tostr(iVal, 10) would yield sVal = 0.01. This was apparently fixed, but maybe not completely. On my Windows 2000 virtual machine development environment, this code returns sVal = 0.00 as expected. On Windows 7, it continues to report sVal = 0.01. I have checked carefully to make sure the same versions of libraries and so forth are being used, but they all appear to be the same. At least, smpol.dll and smpwin32.exe are both dated 11/21/2012 which I believe is the latest.
January 15, 2014 at 5:04 pm #1557MichaelKeymasterOn 09/01/2014 17:16, jim wrote:
> Awhile back, I reported a bug where, if iVal = 0 then sVal = .tostr(iVal,
> 10) would yield sVal = 0.01.
>
> This was apparently fixed, but maybe not completely.
>
> On my Windows 2000 virtual machine development environment, this code
> returns sVal = 0.00 as expected. On Windows 7, it continues to report
> sVal = 0.01.
>
> I have checked carefully to make sure the same versions of libraries and
> so forth are being used, but they all appear to be the same. At least,
> smpol.dll and smpwin32.exe are both dated 11/21/2012 which I believe is
> the latest.
>I am running on Windows 7 64-bit. I have been unable to reproduce this error. I created the following program:
function main()
integer ii = 0
end function .tostr(i, 10)It returns 0 every time.
Ciao, Neil
- AuthorPosts
- You must be logged in to reply to this topic.