cformat

Provide printf-like formatting similar to the C standard library.

Summary
cformatProvide printf-like formatting similar to the C standard library.
Functions
sprintfGiven a format string and an array of parameters, format the string and return the result.
printfGiven a format string and an array of parameters, format the string and print the result.

Functions

sprintf

FUNCTION sprintf(fmt: String,
value: Object...): String

Given a format string and an array of parameters, format the string and return the result.

Parameters

fmtthe format string
valuethe values to format

Description

The available formatting codes are

#ddecimal number
#sstring

Exceptions

  • <TypeMismatch> - if the wrong type is supplied for a parameter

See Also

printf

printf

FUNCTION printf(fmt: String,
value: Object...)

Given a format string and an array of parameters, format the string and print the result.

Parameters

fmtthe format string
valuethe values to format

Exceptions

  • <TypeMismatch> - if the wrong type is supplied for a parameter

See Also

sprintf

FUNCTION sprintf(fmt: String,
value: Object...): String
Given a format string and an array of parameters, format the string and return the result.
FUNCTION printf(fmt: String,
value: Object...)
Given a format string and an array of parameters, format the string and print the result.
Close