# Function representation_in_base

## Synopsis

```
#include "breeze/mathematics/representation_in_base.hpp"
template <typename T>
std::string representation_in_base(T n, int base)
```

## Description

- Precondition
- base >= 2 && base <= 36
- Returns
- The representation, in base
`base`

, of the integer`n`

. A negative value is represented as the character '-' (minus) immediately followed by the representation of its absolute value (in the mathematical sense:`the`

minimum value of`T`

is handled correctly, even on a two's complement implementation).

## Source

Line 34 in breeze/mathematics/representation_in_base.hpp.