the following expression produces '003':
digits(dec('3',3,0))
The following expression produces '0004':
digits(dec('3',3,0)+1)
Can anyone tell me why it wasn't '004'?
Now I can get '004' with the following:
digits(dec(dec('3',3,0)+1,3,0))
but now we're getting a little rediculous. I guess the real question: Is there any way to increment a decimal without changing it width and scale?
digits(dec('3',3,0))
The following expression produces '0004':
digits(dec('3',3,0)+1)
Can anyone tell me why it wasn't '004'?
Now I can get '004' with the following:
digits(dec(dec('3',3,0)+1,3,0))
but now we're getting a little rediculous. I guess the real question: Is there any way to increment a decimal without changing it width and scale?