Skip to main content
CalcBuilder logo

CalcBuilder Tutorial

Calc Builder field type: Number

The Number field is a numeric input. It is what you use for money, quantities, percentages and measurements — anything you will do arithmetic with.

A Number field on the front end.
A Number field on the front end.

Key settings

  • Decimals (field → Preferences) — how many decimal places the visitor may enter; the thousand/decimal symbols come from the calculator’s Preferences tab.
  • Prefix / Suffix — e.g. € or kg shown next to the box.
  • Min / Max (Advanced) — validated before the calculation runs.
  • For a currency box that formats as you type, use a Text field with a money mask instead.

In code

Read it as $variable (for ex. $price). $total = $price * $qty;

Part of the Form Fields reference. All types are demonstrated together in the Field Types Showcase.

...
IA Calculators

Let our AI assistant generate your CalcBuilder calculators (pack of 5 calculators)

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!