MockHero

float

Business

Alias for decimal — generates floating-point numbers in a configurable range. Use whichever field name matches your database schema.

Example Outputs

42.50.001999.99

Parameters

ParameterDescription
minMinimum value
maxMaximum value
precisionDecimal 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

Try it now

Generate float data instantly in the playground.

Generate Float + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free