decimal
BusinessGenerate decimal floating-point numbers within a configurable range and precision. For any numeric field that needs fractional values.
Example Outputs
42.50.75100.1233.14159Parameters
| Parameter | Description |
|---|---|
| min | Minimum value |
| max | Maximum value |
| precision | Decimal places |
API Usage
Send a POST request to generate decimal data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "decimal",
"type": "decimal",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Scientific data
- Measurement fields
- Percentage values
- Calculation testing
Generate Decimal + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.