The Number field captures numeric values — integers or decimals — with optional formatting and validation. Number fields enable calculations, comparisons, and numeric operations within automations and data processing. Use Number fields whenever you need to perform mathematical operations, apply min/max validation, or format values with prefix/suffix. Number fields are essential for quantities, ages, scores, and any data that requires numeric processing.Documentation Index
Fetch the complete documentation index at: https://docs.penbox.io/llms.txt
Use this file to discover all available pages before exploring further.
When to Use
Use Number fields for:- Quantities (items, count, volume)
- Ages and years
- Scores and ratings
- Percentages and ratios
- Measurements (weight, height, distance)
- Identifiers that are purely numeric (account numbers, IDs)
- Calculated values
- Use Currency for monetary amounts (prices, costs, revenues, claims)
- Use Text for alphanumeric IDs (contain letters)
- Use Choices for predefined numeric ranges (age groups, price tiers)
- Use Date for years that represent dates
Configuration Options
| Option | Description | Type | Default | Example |
|---|---|---|---|---|
key | Unique identifier | String | Required | number_of_employees |
name | Display label | String | Required | ”Number of Employees” |
description | Help text for users | String | Optional | ”Total full-time employees” |
min | Minimum allowed value | Number | None | 0 |
max | Maximum allowed value | Number | None | 1000000 |
decimals | Number of decimal places | Number | None | 2 |
prefix | Text displayed before the value | String | None | $ |
suffix | Text displayed after the value | String | None | kg |
placeholder | Hint text shown in empty field | String | None | ”Enter a number” |
visibility | Display setting | String | always-visible | hide-when-empty |
section | Section this field belongs to | String | None | Section UUID |
Examples
Basic Integer
Collect a simple count:Decimal Value
Collect precise measurements:Percentage with Prefix/Suffix
Collect a percentage value:Validation
Number fields enforce numeric validation automatically:Type Validation
- Only numeric values accepted
- Decimals allowed based on
decimalsconfiguration - Non-numeric input rejected
Range Validation
min- Minimum allowed value (inclusive)max- Maximum allowed value (inclusive)- User cannot enter values outside range
Decimal Validation
decimalsdefines maximum decimal places allowed- For integers: omit
decimalsor set to0 - For precise values: set
decimalsto the required precision (e.g.,2)
Validation happens when users fill the field. Existing data or API imports are
not automatically validated.
Best Practices
Always use Number for numeric data:- Don’t store numbers as text (prevents calculations)
- Use Number even if you don’t need calculations now (future-proofs)
- Enables numeric comparisons in automations
- Prevents invalid or unrealistic values
- Catches data entry errors
- Useful for regulated fields with limits
- Omit
decimalsfor counts and quantities - Use
2for precise measurements - Use appropriate precision for your domain
- Add
suffix: "kg"for weight fields - Add
suffix: "%"for percentage fields - Helps users understand expected format
- Don’t use Number with a currency prefix for financial amounts
- The Currency field type is purpose-built for monetary values
- Don’t set overly restrictive min/max
- Consider edge cases (zero values, large amounts)
- Test with realistic data ranges
Related Field Types
Currency
Use for monetary amounts with currency formatting
Text
Use for alphanumeric IDs and formatted numbers
Choices
Use for predefined numeric ranges or tiers
Data Schema Overview
Back to Data Schema overview