Icarus
Joined: 24 Nov 2005 Posts: 433
|
Posted: Mon Aug 20, 2007 5:44 pm Post subject: Error in Round() after using DllCall |
|
|
Hello,
I posted this in a different thread and was referred to this thread instead.
There seems to be a problem with Round() that happens after loading rmchart.dll.
The original thread is here
The rmchart homepage is here
The following code demonstrates the problem.
The Round() function returns a different value after the DllCall
| Code: | myNumber := 1043.22
myRounded := Round( myNumber, -1 )
msgbox 32,,Before: %myRounded%
ChartModule := DllCall("LoadLibrary", "str", "rmchart.dll")
myNumber := 1043.22
myRounded := Round( myNumber, -1 )
msgbox 32,,After %myRounded%
|
The first call generates 1040 as expected, the second call - 1039...
The developer, Rainer Morgen is very friendly and I am guessing the problem is with his DLL, but I am not sure how to report this to him. |
|