float
BusinessAlias for decimal — generates floating-point numbers in a configurable range. Use whichever field name matches your database schema.
Example Outputs
42.50.001999.99Parameters
| Parameter | Description |
|---|---|
| min | Minimum value |
| max | Maximum value |
| precision | Decimal places |
API Usage
Send a POST request to generate float 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": "float",
"type": "float",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Numeric field testing
- Scientific data
- Sensor data simulation
Quick Info
- Field Type
- float
- Category
- Business
- Parameters
- 3 parameters
- Output Format
- JSON, CSV, SQL
Generate Float + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.