---
url: /dyad/stable/stdlib/BlockComponents/components/Math.IntegerToReal.md
description: Dyad Math.IntegerToReal docs.  Convert Integer to Real signals.
---

# `Math.IntegerToReal` {#Math.IntegerToReal}

Convert Integer to Real signals.

This block computes the Real output `y` from the Integer input `u`:

```
y = u
```

## Usage {#Usage}

`BlockComponents.Math.IntegerToReal()`

## Connectors {#Connectors}

* `u` - This connector represents an integer signal as an input to a component ([`IntegerInput`](/stdlib/Dyad/connectors/IntegerInput#IntegerInput))

* `y` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Behavior {#Behavior}

$$ \begin{align}
y\left( t \right) &= u\left( t \right)
\end{align}
$$

## Source {#Source}

````dyad
"""
Convert Integer to Real signals.

This block computes the Real output `y` from the Integer input `u`:

```
y = u
```
"""
component IntegerToReal
  "Connector of Integer input signal"
  u = IntegerInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Real output signal"
  y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
  y = u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/IntegerToReal.svg"}
  }
}
end
````

````dyad
"""
Convert Integer to Real signals.

This block computes the Real output `y` from the Integer input `u`:

```
y = u
```
"""
component IntegerToReal
  "Connector of Integer input signal"
  u = IntegerInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Real output signal"
  y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
  y = u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/IntegerToReal.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Constant`](Math.IntegerToReal.md)

  * [`IntegerConstant`](Math.IntegerToReal.md)

  * [`IntegerStep`](Math.IntegerToReal.md)

  * [`IntegerToReal`](Math.IntegerToReal.md)

  * [`IntegerToReal`](Math.IntegerToReal.md)

  * [`RealToInteger`](Math.IntegerToReal.md)

  * [`Sine`](Math.IntegerToReal.md)
