02-07-2015, 02:50 PM
I have written the following function to insert a digit grouping comma to a double precision value converted to string:
Function tempf11
I wonder whether there exists a system function to do it in an elegant way.
Many thanks in advance.
Function tempf11
double x=12345.68
str s=x
int i=find(s ".")
i=iif(i<0 len(s)-3 i-3)
if i > 0; s.insert("," i)
out s
I wonder whether there exists a system function to do it in an elegant way.
Many thanks in advance.