Page 1 of 1

TM1 TI How to trim out extra space from text

Posted: Mon Feb 06, 2017 1:14 pm
by Ashleigh W
Hi everyone, How to trim out extra space from text. Below code 'm expecting to return X4 but it returns "X 4.000" and error log show variable not found.
Please help.

Code: Select all

X4 = '15';
Tnum = ROUND(Tnum);
S0 = EXPAND('%X' | EXPAND('%Tnum%') | '%');

Re: TM1 TI How to trim out extra space from text

Posted: Mon Feb 06, 2017 1:36 pm
by tomok
What about the ROUNDP function?

Re: TM1 TI How to trim out extra space from text

Posted: Mon Feb 06, 2017 1:45 pm
by mykill

Code: Select all

NumbertoString(Tnum);
should work.