Decimal.toString

Convert the Decimal to string, passing it to the given sink.

struct Decimal
const
void
toString
(
scope void delegate
(
const(char)[]
)
sink
,
FormatSpec!char fmt
)

Parameters

sink void delegate
(
const(char)[]
)

An OutputRange for accepting possibly piecewise segments of the formatted string.

fmt FormatSpec!char

A format string specifying the output format.

Available: %D (or %f instead it) and %s. For %D (or %f) there are available '+', '0' and width with precision like for floating. For example, "%+08.5D".

Meta