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

Returns the representation, in base base, of the integer n.

Precondition
base >= 2 && base <= 36
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 33 in breeze/mathematics/representation_in_base.hpp.