Question:
When the data type of a decimal value is changed from Real to String, digits beyond the second decimal place are rounded off. How can I preserve all of the digits?
Answer:
The String Function always uses the default value formatting. Digits beyond the default value format will be truncated.
//Problematic expression - Use String Function
String([MyNum])
A workaround is to use a TERR script and TERR_String Function instead.
//Workaround - Take advantage of as.character in TERR using TERR_String Function
TERR_String("output <- as.character(format(input1,scientific=F))",[MyNum])
Comments
0 comments
Article is closed for comments.