![]() You can display the special characters above as literals if you enclose them in single quotation marks. ![]() ![]() If you do not use this character and the additional pattern, negative numbers display a minus ("-") prefix. Separates positive and negative format patterns.įor example, the "#0.# (#0.#)" format displays a positive number according to the pattern before the semicolon (" "), and a negative number according to the pattern after the semicolon (" "). If the formatted number does not have a digit in the corresponding position, it displays nothing.įor example, if you apply format "#0.#" to "123.45", the result is "123.5". Subsequent characters match a single digit. If this character goes first in the format string, it can match multiple leading digits (before the decimal point). Displays '0' if the formatted number does not have a digit in that position.Īny number of leading digits, a single digit, or nothing. The format property supports the following wildcard characters:Ī digit. An LDML pattern consists of wildcard characters and characters displayed as is. Use Unicode Locale Data Markup Language (LDML) patterns to specify a custom format string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |