Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

printf

Formats some text using placeholders like {0} etc. and returns the formatted string.

printf(text,args)

Formats some text using placeholders like {0} etc. and returns the resulting string.

Argument text

String

Argument args

Arguments

Returns 1. entry

String

Example

s = printf("{2} The result of {0} + {1} is {3}", 2.0, 7i, "Hi!", 2.0 + 7i)

Evaluates the arguments and includes them in the string given by the first argument.

Clone this wiki locally