Modify ↓
#1965 closed Bug (Works For Me)
Round() sometimes don't work
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | Round | Cc: |
Description
I'm using the function like this Round($i ,2).
It is working most times but sometimes it gives back a number like 8.17438492012498
Attachments (0)
Change History (7)
comment:1 by , 15 years ago
comment:3 by , 15 years ago
comment:5 by , 15 years ago
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
comment:6 by , 15 years ago
Local $ret = 500 * 1.007 MsgBox(0,"", $ret) ; => 503.5 MsgBox(0,"", Round($ret)) ; => 503 ,but it should be 504 as follows MsgBox(0,"", Round(503.5)); => 504
This is not the same as maerzi's, but there must be something wrong with Round
Note:
See TracTickets
for help on using tickets.

Reproducing script is missing.