Modify

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#2581 closed Bug (Fixed)

Dec ( "hex" [, flag = 0] ) Does not respond like before.

Reported by: DutchCoder Owned by: Jon
Milestone: 3.3.11.0 Component: AutoIt
Version: 3.3.10.1 Severity: None
Keywords: Cc:

Description

It looks as if the optional flag is not responding anymore.
The return value equals 1 for every hex string.
Integer (default mode) still works fine.

Attachments (1)

RealDec.au3 (802 bytes ) - added by DutchCoder 12 years ago.

Download all attachments as: .zip

Change History (5)

by DutchCoder, 12 years ago

Attachment: RealDec.au3 added

comment:1 by Melba23, 12 years ago

In fact it is flags 1 & 2 that do not work - flags 0 & 3 still do as shown here:

$nRet = Dec("FFF")
ConsoleWrite("0 = " & $nRet & @CRLF)
$nRet = Dec("FFF", 1)
ConsoleWrite("1 = " & $nRet & @CRLF)
$nRet = Dec("FFF", 2)
ConsoleWrite("2 = " & $nRet & @CRLF)
$nRet = Dec("FFF", 3)
ConsoleWrite("3 = " & $nRet & @CRLF)

3.3.10.2 returns:

0 = 4095
1 = 1
2 = 1
3 = 2.0231988197199e-320

3.3.8.1 returns:

0 = 4095
1 = 4095
2 = 4095
3 = 2.0231988197199e-320

M23

comment:2 by guinness, 12 years ago

Confirmed the same results using AutoIt 3.3.10.2 64-bit.

comment:3 by Jon, 12 years ago

Milestone: 3.3.11.0
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [9428] in version: 3.3.11.0

in reply to:  description comment:4 by anonymous, 10 years ago

Replying to DutchCoder:

It looks as if the optional flag is not responding anymore.
The return value equals 1 for every hex string.
Integer (default mode) still works fine.

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.