cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between Length, Decimal Places, Output Length?

yalcin_mete
Participant
0 Kudos

Hi Masters,

Does "Length" or "Output Length" determine the maximum length that a variable type can have?
Does Output Length mean including the value after the comma (decimal)? Or is it length?
What is the maximum value I can give for this domain? Can I show the value 1234567891234.12?
Where should I look for the integer part?

 

yalcin_mete_1-1715870102970.png


yalcin_mete_2-1715870138277.png

 

yalcin_mete_3-1715870154817.png

 

Thanks

 

 

DominikTylczyn
Active Contributor
0 Kudos

deleted

View Entire Topic
TuncayKaraca
Active Contributor

Hi Yalçın,

"Length" determines the maximum length that a variable type can have. So in your example field NETPR(11,2) with CURR type can hold value max 11 like 123456789.12 or 123456789.00 *

"Output Length" is determines the length for the display including thousand and decimals separators. For examples above like 123,456,789.12 or 123,456,789.00 which are 14 length. *

*Just corrected examples with Sandra's warnings. Thanks.

Regards,
Tuncay

Sandra_Rossi
Active Contributor
No, NETPR(11,2) means a total of 11 digits maximum, of which 2 are decimals.
TuncayKaraca
Active Contributor
@Sandra_Rossi You are right. I read what I wrote it carefully. What I meant for "Length" and my examples don't match! Thanks for the warning!