Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Martin_HH, 1 invisible), 13,072 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
What is ./ and .- (sorry for noob question) #412931
12/05/12 09:24
12/05/12 09:24
Joined: Nov 2012
Posts: 8
Singapore
discrete Offline OP
Newbie
discrete  Offline OP
Newbie

Joined: Nov 2012
Posts: 8
Singapore
Such as in

var a = 2./(period+1);

and

2*(1.-a)

Re: What is ./ and .- (sorry for noob question) [Re: discrete] #412932
12/05/12 09:31
12/05/12 09:31
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Hi,

It is not ./ or .- but 2.[0] and 1.[0]. It is needed to make the compiler treat your number like a real(float) even if it is an int.

eg : 5 / 2 = 2 and 5. / 2 = 5 / 2. = 2.5

Last edited by 3dgs_snake; 12/05/12 09:31.
Re: What is ./ and .- (sorry for noob question) [Re: 3dgs_snake] #412997
12/06/12 05:25
12/06/12 05:25
Joined: Nov 2012
Posts: 8
Singapore
discrete Offline OP
Newbie
discrete  Offline OP
Newbie

Joined: Nov 2012
Posts: 8
Singapore
ah I see, thanks! was wondering whether it's another kind of shorthand I haven't seen before (like +=)


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1