format string | float



format float
Smart pascal source code
WriteLn(Format('hello', [])); WriteLn(Format('hello %s', ['world'])); WriteLn(Format('hello %s %d', ['world', 123])); WriteLn(Format('hello %s %d %.1f', ['world', 123, 12.5])); var s = 'WORLD'; var i = 456; var f = 3.14; WriteLn(Format('hello %s', [s])); WriteLn(Format('hello %s %d', [s, i])); WriteLn(Format('hello %s %d %f', [s, i, f])); {<<< RESULT - CONSOLE LOG >>> ----------------------------- hello hello world hello world 123 hello world 123 12.5 hello WORLD hello WORLD 456 hello WORLD 456 3.14 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}