Format(fmt:Str, args:Any...):Str

Format a string. The format string can contain placeholders, each of which is replaced by one of the arguments, similar to the sprintf function found in many programming languages.

Some placeholders:

  • %d formats an integer as a decimal number ("99")
  • %e formats a fraction in exponential format ("9.99e+1")
  • %f formats a fraction as regular decimal fraction ("99.9")
  • %g auto-selects between %e and %f
  • %x formats an integer as an octal number ("143")
  • %s formats a string
  • %x formats an integer as a hexadecimal number ("63")

You can specify a decimal number between the percent sign and the letter to format the result with at least that many places.

This function supports up to 10 arguments (plus the format string) in one call.

Since: PCC2 1.99.9

See also: RXml

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.