Files
twanvl 6afbbe986c more documentation spellchecking,
in documentation: @<tag>@ now highlights as a tag

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1279 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-01 21:22:45 +00:00

26 lines
729 B
Plaintext

Function: format
DOC_MSE_VERSION: deprecated in 0.3.7, use to_string
--Usage--
> format(some_number, format: format_specification)
Format a number or other string as a string, [[http://www.cplusplus.com/reference/clibrary/cstdio/printf.html|printf]] style.
--Parameters--
! Parameter Type Description
| @input@ [[type:int]] or [[type:double]] or [[type:string]]
Item to format.
| @format@ [[type:string]] Format specification.
--Examples--
> format(format: "%03X", 13) == "00D"
> format(format: "%03d", 13) == "013"
> format(format: "%3s", "xy") == " xy"
>
> f := format@(format: "%03d")
> f(1) == "001"
--See also--
| [[fun:to_string]] Convert any value to a [[type:string]]