Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/23/2010(UTC) Posts: 60
|
Is there any way to make the "Input" Function work with decimal numbers?
I want to have two possible inputs 1.15 and 1.2.
Formula with 1.2 used :
A:=Input("Lookback Period Days",2,100,4)
B:=Input("Smoothing Days",3,100,28)
-1.2*Mov(HHV(H,A)-LLV(L,A),B,E)
Thanks,
Dennis
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Dennis
The Input() function accepts both fractional and negative numbers. What it doesn't do is increment or decrement to fractional numbers so you need to enter the full number when it contains a fraction and is different from the default value. If this is a number that you change often then placing that Input() function first (if there's more than one) means that the input field will already be highlighted when you open the Parameters window, i.e. no need to select the correct Input() before keying in a number.
Don't overlook the fact that the default Input() values are the only values that can be passed on to other formulas (when using Fml() or FmlVar() calls for example).
Roy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/23/2010(UTC) Posts: 60
|
Thanks Roy,
Your insight is very helpfull to me.
Dennis
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.