Name

sformat — Format a String

Synopsis

string sformat ( string  FORM,
  any  PAR1,
  any  PAR2,
  any  ...);

Parameters

string FORM

any PAR1

any PAR2

any ...

Return

string

Description

FORM is a string that may contains placeholders %1, %2, ... Each placeholder is substituted with the argument converted to string whose number is after the %. Only 1-9 are allowed by now. The percentage sign is donated with %%.

Usage

  sformat ("%2 is greater %% than %1", 3, "five") -> "five is greater % than 3"