Skip to main content

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. It arrives as a string, so cast it: $total = (float) $price * $qty;

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

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!