format. Outputting a number in specified format

^string.format[format_string]

The method outputs variable's value in
specified format (see format strings).
The
string is automatically converted into a number.

Example
$var[15.67678678]
^var.format[%.2f]


The code will return
15.68


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 21.09.2007