Skip to content

.tostr bug

Forums Forums SIMPOL Programming .tostr bug

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23
    Jim Locker
    Member

    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.

    #1557
    Michael
    Keymaster

    On 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 i

    i = 0
    end function .tostr(i, 10)

    It returns 0 every time.

    Ciao, Neil

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.