String Formats for the format function

Character

Description

@

Character placeholder. Display a character or a space. If the string has a character in the position where the at symbol (@) appears in the format string, display it; otherwise, display a space in that position. Placeholders are filled from right to left unless there is an exclamation point character (!) in the format string.

&

Character placeholder. Display a character or nothing. If the string has a character in the position where the ampersand (&) appears, display it; otherwise, display nothing. Placeholders are filled from right to left unless there is an exclamation point character (!) in the format string.

<

Force lowercase. Display all characters in lowercase format.

>

Force uppercase. Display all characters in uppercase format.

!

Force left to right fill of placeholders. The default is to fill placeholders from right to left.

“An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way” ~ Charles Bukowski

Related:

Number formats
Format function


 
Copyright © SS64.com 1999-2019
Some rights reserved