{"title":"DecimalPlaces Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-decimalplaces-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-decimalplaces-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-decimalplaces-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets display and storage requirements for the Decimal Data Type.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":125,"chars":54},{"level":2,"title":"Property Value","slug":"property-value","at":179,"chars":521},{"level":2,"title":"Syntax","slug":"syntax","at":700,"chars":43},{"level":2,"title":"Remarks","slug":"remarks","at":743,"chars":974},{"level":2,"title":"Related information","slug":"related-information","at":1717,"chars":65}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets display and storage requirements for the Decimal Data Type.\n## Applies to\n Table field\n Page Field\n Report Column\n## Property Value\nYou can enter minimum, maximum, or both values for the number of decimal places, as shown in the following examples.\nValue|Description\n1|A minimum of 1 and a maximum of 1 decimal place.\n1:4|A minimum of 1 and a maximum of 4 decimal places.\n2:|At least 2 decimal places.\n:2|No more than 2 decimal places.\n> NOTE\n> The maximum number of decimal places that can be specified is 18. If you set a maximum number of decimal places greater than 18, the digits following the 18th decimal place will be ignored.\n## Syntax\n```al\nDecimalPlaces = 0 : 5;\n```\n## Remarks\nFor decimal fields, this property specifies the number of decimal places that you want to store. The default storage requirements for Decimal Data Type<../methods-auto/library> are two decimal places for amounts. Use this property to specify storage requirements that are different than the default.\nThis setting is evaluated on text boxes and fields during validation.\nWhen you create a new field of Decimal Data Type<../methods-auto/library>, the value is automatically formatted as a currency. If your decimal field does not contain a currency value, then you can use this property to determine the number of decimal places that appear on the screen. For example, in the G/L Entry table, the DecimalPlaces property of field 42, Quantity, is set to 0:5. The minimum number of decimal places that you can enter is 0 and the maximum is 5.\nFor more information about formatting decimal values, see Formatting Decimal Values in Fields<../devenv-format-field-data>.\n## Related information\nDecimal Data Type<../methods-auto/library>"}