Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Changed 6 years ago by Melba23

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

Version 0, edited 6 years ago by Melba23 (next)

comment:2 Changed 6 years ago by Melba23

  • Resolution set to No Bug
  • Status changed from new to closed

comment:3 Changed 6 years ago by jchd18

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.