Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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