The OpenD Programming Language

toDecimalString

pure nothrow @safe
string
toDecimalString
(
const(BigInt) x
)

Parameters

x const(BigInt)

The BigInt to convert to a decimal string.

Return Value

Type: string

A string that represents the BigInt as a decimal number.

Examples

auto x = BigInt("123");
x *= 1000;
x += 456;

auto xstr = x.toDecimalString();
assert(xstr == "123456");

Meta