Calc with e

Propose new features and changes
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Calc with e

18 Nov 2013, 02:37

Calc with e
e.g.

Code: Select all

var1 := 12
var2 := 4e7     ; 40000000
MsgBox, % var1 * var2
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Calc with e

18 Nov 2013, 03:00

v1 just requires a decimal point, as documented:

Code: Select all

var1 := 12
var2 := 4.e7     ; 40000000
MsgBox, % var1 * var2
Your code already works in v2.
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: Calc with e

18 Nov 2013, 03:01

Code: Select all

k := 234567898765433456789876543456 * 1
MsgBox % k
why?
John ... you working ?
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Calc with e

18 Nov 2013, 03:03

[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: Calc with e

18 Nov 2013, 03:05

so that is the limit :-p
John ... you working ?
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Calc with e

18 Nov 2013, 03:09

Code: Select all

var1 := 12
var2 := 4.e7     ; 40000000
MsgBox, % var1 * var2
gives me 480000000.000000
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Calc with e

18 Nov 2013, 05:53

smorgasbord wrote:why?
That's a good question. You should ask yourself it before posting. For instance, "Why am I posting in this thread?" (Ideally you'd find an answer that leads you to post in a relevant thread and in the appropriate forum.)

Also, your number is too large. This is covered under Variable Capacity and Memory.
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: Calc with e

18 Nov 2013, 07:15

@Lexikos
Thanks, will surely take care in future.
Btw you have done an awesome job of maintaining the AHK language:) not related to this thread may be so struck :)
John ... you working ?

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 58 guests