The suppress_zero option is not documented anywhere in the Parallel Job Developers Guide but it is in the Orchestrate Operator's reference.
stringField = string_from_decimal[fix_zero][suppress_zero] (decimalField)
Converts decimals to strings.
fix_zero causes a decimal field containing all zeros to be treated as a valid zero.
suppress_zero specifies that the returned ustring value will have no leading or trailing zeros.
Examples: 000.100 -> 0.1; 001.000 -> 1; -001.100 -> -1.1
suppress_zero also gets rid of the leading space and the decimal point. This makes it more useful then the standard string_from_decimal and a handy undocumented flag.
The suppress_zero option is not documented anywhere in the Parallel Job Developers Guide but it is in the Orchestrate Operator's reference.
stringField = string_from_decimal[fix_zero][suppress_zero] (decimalField)
Converts decimals to strings.
fix_zero causes a decimal field containing all zeros to be treated as a valid zero.
suppress_zero specifies that the returned ustring value will have no leading or trailing zeros.
Examples: 000.100 -> 0.1; 001.000 -> 1; -001.100 -> -1.1
suppress_zero also gets rid of the leading space and the decimal point. This makes it more useful then the standard string_from_decimal and a handy undocumented flag.
No, as per the documentation:
stringField = string_from_decimal[fix_zero][suppress_zero] (decimalField)
C:string[7] = string_from_decimal[fix_zero][suppress_zero](B)
vmcburney wrote:No, as per the documentation:
stringField = string_from_decimal[fix_zero][suppress_zero] (decimalField)
C:string[7] = string_from_decimal[fix_zero][suppress_zero](B)
Good point! I posted without testing it first. Your original syntax was correct and my correction was incorrect. You should use [fix_zero, suppress_zero] instead of [fix_zero][suppress_zero].
But the result is the same as only [suppress_zero].
e.g.
A Decimal(5,0)
123
I want "00123", not "123" or " 00123."
vmcburney wrote:Good point! I posted without testing it first. Your original syntax was correct and my correction was incorrect. You should use [fix_zero, suppress_zero] instead of [fix_zero][suppress_zero].