API Reference › Huge › Huge.str
method

Huge.str

Huge.str(a) -> string

Renders the value in scientific form, like 1.23e45 (a two-decimal mantissa). This is how you show an idle magnitude on the HUD.

Example

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