Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (monk12), 1,487 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | chip programmers | 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