# Type Integer / Float

* string&#x20;
* integer
* float
* bool
* date
* id
* array / object

Les types integer et float sont des types qui permettent de générer des chiffres décimaux ou entier incluant des paramètres de personnalisation.

> Dans une version future il sera possible de paramétrer le nombre de décimals

Pour générer un champs id sur un dataset cela prend toujours la même forme

```yaml
// Exemple de champs générés


- fieldName: test random 
    type : float
    allowedValues : [1,2,4,5] 
   
- fieldName: température 
    type : float
    rules:
        range:
            min: 0
            max: 45
- fieldName: age 
    type : integer
    rules:
        range:
            min: 0
            max: 45
      
  
```

{% hint style="info" %}
**min** ->*integer*  ce paramètre précise la valeur minimal du champ
{% endhint %}

{% hint style="info" %}
**max** ->*integer*  ce paramètre précise la valeur maximal du champ
{% endhint %}

## Saisonnalité

Voir exemple et explication dans [Type Date](/dataset-generation-doc/yaml/type-date.md)

## Workflow

Voir un exemple  et la documentation dans Workflow

Il est possible de simuler un **workflow** dans les champs **integer**, **float** et **string**.

```yaml
// Exemple de Worflow
  - fieldName: wf float 
    type : float
    wf1 : -111.2
    wf2 : "<=-33.00" // il est possible de passer une condition
    wf3 : 10.5
```

{% hint style="info" %}
**wf\*** *-> integer, float , condition ce paramètre permet de définir l'ordre du worflow, il est meme possible d'ajouter une condition pour générer un nombre aléatoire si besoin*&#x20;
{% endhint %}

{% hint style="warning" %}
Pour les condition dans les wf il ne supporte pour l'instant que les opérateur de base <, >, <=, ≥, ≠, il n'est pas possible pour l'instant de faire un range.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dataset-generation-doc.gitbook.io/dataset-generation-doc/type-integer-float.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
