Decimal.fromDouble

Decimal fromDouble( double v, ref DecimalContext ctx) static @safe

Opt-in binary-float bridge: renders the double with 17 significant digits (the round-trip guarantee) and rounds under the context. Exact doubles stay exact when their digits fit. Allocates (text path); deliberately outside the @nogc core.