logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
blackcat54  
#1 Posted : Tuesday, April 27, 2010 2:06:25 PM(UTC)
blackcat54

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

mstt  
#2 Posted : Tuesday, April 27, 2010 3:31:10 PM(UTC)
mstt

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

blackcat54  
#3 Posted : Tuesday, April 27, 2010 4:08:28 PM(UTC)
blackcat54

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)
Similar Topics
( pds valus or input function) and The Explorer (Formula Assistance)
by homano 7/10/2018 9:29:03 AM(UTC)
help on input function (Formula Assistance)
by happysingh 10/16/2006 1:00:39 AM(UTC)
Input function [RESOLVED] (Formula Assistance)
by DayTrader 9/30/2005 11:00:41 AM(UTC)
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.