API Reference › Decimal › Decimal.str
method

Decimal.str

Decimal.str(d) -> string

Renders the value as text with its decimal point in place (a leading - when negative). This is how you display or serialize money.

Example

program Demo {
  handler Step phase Update {
    Screen.draw_text(8, 8, Decimal.str(balance), Color.White, 1)
  }
}
← All symbols