Exponents in ASCIIOUTPUT
Posted: Wed Sep 26, 2012 1:14 pm
Just had an issue here where a remote TM1 site was generating data formatted as exponents in their ASCIIOutput routines but just for very small numbers.
i.e. 0.000000003 was being exported as 3e-09
This was causing us data type issues in the relational world we were passing data to. (Yes I know, don't ask)
This issue was caused by TIs different data type conversion.
If you set the your value field to the data type string in the variable tab then you get exponents for small values (the smallest I saw was 1e-05). It did not appear to do this for large numbers.
If you set the data type to numeric and then use numbertostring or str in your asciioutput statement then you get a proper number string i.e. “0.000000003”
Hopefully this will help some else out if they come across this rather annoying wrinkle….
Seen in 9.5.1
i.e. 0.000000003 was being exported as 3e-09
This was causing us data type issues in the relational world we were passing data to. (Yes I know, don't ask)
This issue was caused by TIs different data type conversion.
If you set the your value field to the data type string in the variable tab then you get exponents for small values (the smallest I saw was 1e-05). It did not appear to do this for large numbers.
If you set the data type to numeric and then use numbertostring or str in your asciioutput statement then you get a proper number string i.e. “0.000000003”
Hopefully this will help some else out if they come across this rather annoying wrinkle….
Seen in 9.5.1