Page 1 of 1
Decimal numeric parameter?
Posted: Fri Jul 11, 2014 12:40 am
by macsir
Hi,
maybe it is a another stupid question
when it is a numeric parameter in TI, in the parameter window, it is showing correctly. But when to run it, it only shows the integer part of this number?
Am I missing something here?
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 12:42 am
by macsir
When to run it
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 1:53 am
by hyunjia
Could you state the TM1 version that you are using ? I have never encoutered this problem , and it's really shock if that's a bug .

Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 2:02 am
by macsir
hyunjia wrote:Could you state the TM1 version that you are using ? I have never encoutered this problem , and it's really shock if that's a bug .

Yeah, I thought it should not be a problem but I tried many times. It does ignore the decimal part of that parameter.
Thanks, the server's version is 10.1.00100.24600
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 5:55 am
by hyunjia
Confirm the same happened in 10.1.1 SP2 ,

it certaily is a bug
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 6:06 am
by macsir
hyunjia wrote:Confirm the same happened in 10.1.1 SP2 ,

it certaily is a bug
Thanks for that. Anyone else can test on other versions?
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 10:02 am
by Alan Kirk
macsir wrote:hyunjia wrote:Confirm the same happened in 10.1.1 SP2 ,

it certaily is a bug
Thanks for that. Anyone else can test on other versions?
Same thing in both 9.5.2 and 10.2. The decimal value is saved in the .pro file, but when TI loads the prompt dialog it truncates that to the integer value.
Re: Decimal numeric parameter?
Posted: Fri Jul 11, 2014 12:29 pm
by declanr
I've got around this previously by having 2 parameters (the integer and the decimal), it was being ran from tm1 web so users typed into 1 box then hidden cells split it out. If you want to run directly that would feel cumbersome though.
Could enter the parameter as string then convert it to a number but then you run the risk of people typing stupid things.
Re: Decimal numeric parameter?
Posted: Sun Jul 13, 2014 10:28 pm
by macsir
Yeah, the only way I can do is to use string and conversion.