1
Converting AS/400 negative numeric to character with leading zeros
I need to convert numeric values to character keeping the leading zeros and when the value is a negative, I need to prepend the negative sign in rpgle. Example: Positive Amount : 00005679.05 = 5,769.05 Negative Amount: 00000-500.25 = -500.25 I’ve tried the editc with the ‘X’ edit code but i need the negative sign. [...]
Answer Question
| December 4, 2010 5:11 PM
AS/400, AS/400 numeric fields, Numeric conversion, V5R4
I need to convert numeric values to character keeping the leading zeros and when the value is a negative, I need to prepend the negative sign in rpgle. Example: Positive Amount : 00005679.05 = 5,769.05 Negative Amount: 00000-500.25 = -500.25 I’ve tried the editc with the ‘X’ edit code but i need the negative sign. [...]
1





