> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Type: Float

> Checks that the value is of type float.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Checks whether the incoming value is a decimal number, such as `19.99` or `3.5`. Use this to confirm that a field like a price, weight, or rate really holds a fractional number before you calculate with it. This is the strictest of the number checks: only a genuine decimal number matches. A whole number such as `42` is treated as an integer, not a float, so it does not match, and text such as `"19.99"` does not match either because it is text rather than a number. This condition has no settings: it looks at whatever value it is given and reports whether that value is a decimal number.

This documentation describes: [Schema](/schemas/condition/type-float)

## Fields

This condition has no settings of its own.

## Sample data

This checks each entity's `value` field.

| Incoming value                                | Result         |
| --------------------------------------------- | -------------- |
| `19.99` (a decimal number)                    | Matches        |
| `42` (a whole number)                         | Does not match |
| `"19.99"` (the same value as text, in quotes) | Does not match |
| `"hello"` (text)                              | Does not match |
| `true` (an on/off value)                      | Does not match |
| `null` (no value)                             | Does not match |

If you also need to accept whole numbers and numbers written as text, use the [Type: Numeric](/references/condition/type-numeric) check instead.

```json Configuration theme={null}
{
  "prototype": "type-float",
  "parameters": {}
}
```
