# Complex

`import { Complex } from "destack:math";`

Complex number with floating-point components.

```ds title="Complex"
export struct Complex<T: Float> {
    real: T;
    imaginary: T;
}
```

[language/library/src/math/complex.ds:8:14](https://github.com/destack-sh/destack/blob/main/language/library/src/math/complex.ds#L8-L14)

## Members

### `real: T`

The real component.

### `imaginary: T`

The imaginary component.
