Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3658 closed Bug (No Bug)

Problem Number

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description

$Num="89304402523905652748447801781"
$result=Mod($Num,97) ; = 64
$recup=StringSplit ($result,"")
$math=Number ($recup [1]&"-"&$recup [2]); 6-4=2 he is wrong he is leaving 6 instead of 2
$key=Number ($result&"+"&$math)
MsgBox (0,"",$result)
MsgBox (0,"",$key)
MsgBox (0,"",$math)

Attachments (0)

Change History (3)

comment:1 by Melba23, 8 years ago

You need to use Execute and not Number:

$math = Execute($recup[1] & "-" & $recup[2])

Using Number just returns the digits until the first non-digit, so "6-4" becomes "6".

M23

P.S And better to post in the forum for support rather than immediately claiming "bug"

Last edited 8 years ago by Melba23 (previous) (diff)

comment:2 by Melba23, 8 years ago

Resolution: No Bug
Status: newclosed

comment:3 by jchd18, 8 years ago

I answered your very same question on the French forum.
In the future, post on one forum and wait for support there before asserting a bug here.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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