decimal->asString

Formats a decimal as a string.

Target member

Signature

1decimal->asString(...)

Formats a decimal as a string.

decimal->asString is called with member syntax on a receiver value. decimal->asString is part of numeric expression work. Be deliberate about integer versus decimal inputs because several math helpers preserve or infer the result type from their arguments.

Parameters

...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1decimal('3.14')->asString
The example keeps numeric inputs explicit so integer and decimal behavior remain visible.