---
id: post/yzhums-com/56173
type: post
title: "Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers"
summary: Business Central supports entering calculations and negative numbers directly into decimal fields, functioning like a mini calculator. This feature works with basic arithmetic operations and combined formulas for quantities and amounts, but only applies to decimal data types.
tier: community
language: en
tags:
  - data entry
  - calculations
  - decimal fields
  - negative numbers
  - formulas
  - user tips
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:42:40.085Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 7ac6a95db4be19787b57f71281bd9255963e9a5983d5d64c22761485674a5b1a
evidence:
  - kind: blog
    url: https://yzhums.com/56173/
    title: "Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers"
    date: "2025-08-06"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/56173/
    title: "Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers"
    date: "2025-08-06"
    commit: null
    t: null
    quote: When entering numbers into these fields, you can enter the formula instead of the sum quantity.
  - kind: blog
    url: https://yzhums.com/56173/
    title: "Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers"
    date: "2025-08-06"
    commit: null
    t: null
    quote: This can only be used for Decimal Data type.
  - kind: blog
    url: https://yzhums.com/56173/
    title: "Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers"
    date: "2025-08-06"
    commit: null
    t: null
    quote: If the last character of the expression is a + or a - , the entire expression will be recorded with that sign.
links:
  learn: []
  objects:
    - object/table/37
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/thatnavguy-com/https-thatnavguy-com-blog-2025-bc-friday-tips-56-understand-missing-fields-in-copy-documents--e98f782aea
      title: "BC Friday Tips #56 Understand Missing Fields in Copy Documents"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/thatnavguy-com/https-thatnavguy-com-blog-2026-bc-friday-tips-84-item-missing-from-sales-line-lookup--ac89a8fbc6
      title: "BC Friday Tips #84 Why Is Your Item Missing from the Sales Line Lookup?"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/kine-cz/https-blog-kine-cz-posts-bcdevelopmentserie-02b--0078d7faba
      title: "Business Central Development Serie - Part 2b: AI for BC Development — The Knowledge Gap That Ships to Production"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/70008
      title: "Dynamics 365 Business Central: Add a Scan Barcode action and scan multiple/Continious scanning (Invoke barcode scanning programmatically from AL)"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/74172
      title: "Dynamics 365 Business Central: How to flow/pass custom field values from Sales Order to Production Order"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/25134
      title: "Dynamics 365 Business Central: How to note the records that the user has selected on the Subpage/Lines (Page.SetSelectionFilter in part)"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/64478
      title: "Dynamics 365 Business Central: How to quickly check if a field is a primary key field"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/31884
      title: "Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1)"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/yzhums-com/66212
      title: "Dynamics 365 Business Central: Use a default quantity of 1 for all types on documents – Customization"
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
    - to: post/aardvarklabs-blog/1891
      title: Implementing a Multi-Step Process for AI Recommendations in Business Central
      label: possibly related
      why: both name Table 37 "Sales Line"
      by: code
post_id: "56173"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/56173/
published_at: "2025-08-06T01:08:17.000Z"
author: Yun Zhu
full_text: false
words: 334
quotes:
  - text: When entering numbers into these fields, you can enter the formula instead of the sum quantity.
    why_it_matters: Explains the core capability that decimal fields accept formulas rather than just static values
  - text: This can only be used for Decimal Data type.
    why_it_matters: Clarifies the important limitation that this feature is restricted to decimal fields only
  - text: If the last character of the expression is a + or a - , the entire expression will be recorded with that sign.
    why_it_matters: Explains the rule for how negative numbers are determined in suffix notation
code_objects_mentioned:
  - table Sales Line
systems:
  - sales
versions_mentioned: []
cautions:
  - kind: warning
    quote: Integer type fields do not support formulas.
    objects: []
    events: []
    versions: []
  - kind: warning
    quote: div (Integer division) and mod (Modulus) cannot be used.
    objects: []
    events: []
    versions: []
  - kind: gotcha
    quote: If the last character of the expression is a + or a –, the entire expression will be recorded with that sign.
    objects: []
    events: []
    versions: []
  - kind: gotcha
    quote: The Text and Code type will save the formula itself as text directly.
    objects: []
    events: []
    versions: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/08/image-6.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:17:00.522Z"
---

# Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers

[Read the post](https://yzhums.com/56173/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-08-06 · 334 words · tier community · reviewed (checked by Opus)

> Business Central supports entering calculations and negative numbers directly into decimal fields, functioning like a mini calculator. This feature works with basic arithmetic operations and combined formulas for quantities and amounts, but only applies to decimal data types.

## Key points

- Decimal fields accept mathematical expressions like 19+19, 41-9, 12*4, or 12/4 that calculate automatically
- Combined calculations work with parentheses like (2+3)*4 as long as there are no spaces in the formula
- Negative numbers can be entered as -20.5 or 20.5- with the final operator determining the sign
- Only decimal data type supports formulas; integer, text, and code fields do not
- Integer fields support negative numbers but text and code fields store formulas as literal text

## Quotes

- "When entering numbers into these fields, you can enter the formula instead of the sum quantity." (Explains the core capability that decimal fields accept formulas rather than just static values)
- "This can only be used for Decimal Data type." (Clarifies the important limitation that this feature is restricted to decimal fields only)
- "If the last character of the expression is a + or a - , the entire expression will be recorded with that sign." (Explains the rule for how negative numbers are determined in suffix notation)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [table 37 "Sales Line"](../../objects/table/37.md)

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [BC Friday Tips #56 Understand Missing Fields in Copy Documents](../../posts/thatnavguy-com/https-thatnavguy-com-blog-2025-bc-friday-tips-56-understand-missing-fields-in-copy-documents--e98f782aea.md) — possibly related: both name Table 37 "Sales Line"
- [BC Friday Tips #84 Why Is Your Item Missing from the Sales Line Lookup?](../../posts/thatnavguy-com/https-thatnavguy-com-blog-2026-bc-friday-tips-84-item-missing-from-sales-line-lookup--ac89a8fbc6.md) — possibly related: both name Table 37 "Sales Line"
- [Business Central Development Serie - Part 2b: AI for BC Development — The Knowledge Gap That Ships to Production](../../posts/kine-cz/https-blog-kine-cz-posts-bcdevelopmentserie-02b--0078d7faba.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: Add a Scan Barcode action and scan multiple/Continious scanning (Invoke barcode scanning programmatically from AL)](../../posts/yzhums-com/70008.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: How to flow/pass custom field values from Sales Order to Production Order](../../posts/yzhums-com/74172.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: How to note the records that the user has selected on the Subpage/Lines (Page.SetSelectionFilter in part)](../../posts/yzhums-com/25134.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: How to quickly check if a field is a primary key field](../../posts/yzhums-com/64478.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1)](../../posts/yzhums-com/31884.md) — possibly related: both name Table 37 "Sales Line"
- [Dynamics 365 Business Central: Use a default quantity of 1 for all types on documents – Customization](../../posts/yzhums-com/66212.md) — possibly related: both name Table 37 "Sales Line"
- [Implementing a Multi-Step Process for AI Recommendations in Business Central](../../posts/aardvarklabs-blog/1891.md) — possibly related: both name Table 37 "Sales Line"

## Heads up

- warning: "Integer type fields do not support formulas."
- warning: "div (Integer division) and mod (Modulus) cannot be used."
- gotcha: "If the last character of the expression is a + or a –, the entire expression will be recorded with that sign."
- gotcha: "The Text and Code type will save the formula itself as text directly."

## Context

- Features: formula entry in decimal fields, inline calculations, negative number entry, arithmetic operations

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
