Modify

#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 on Dec 30, 2013 at 7:49:42 PM.

Download all attachments as: .zip

Change History (5)

by DutchCoder, on Dec 30, 2013 at 7:49:42 PM

Attachment: RealDec.au3 added

comment:1 by Melba23, on Jan 1, 2014 at 10:46:32 AM

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, on Jan 1, 2014 at 11:48:18 AM

Confirmed the same results using AutoIt 3.3.10.2 64-bit.

comment:3 by Jon, on Jan 1, 2014 at 5:36:44 PM

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, on Mar 9, 2016 at 8:51:29 PM

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.