By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| FUNCTION_ | DUMP_ | OUTPUT_ |
|---|---|---|
| to_char( 1,'9990' ) | Typ=1 Len=5: 32,32,32,32,49 | 1 |
| to_char( 1,'9999' ) | Typ=1 Len=5: 32,32,32,32,49 | 1 |
| to_char( 1 ) | Typ=1 Len=1: 49 | 1 |
| to_char( 1,'fm9990' ) | Typ=1 Len=1: 49 | 1 |
| to_char( 1,'fm9999' ) | Typ=1 Len=1: 49 | 1 |
| to_char( 0,'99.90' ) | Typ=1 Len=6: 32,32,32,46,48,48 | .00 |
| to_char( 0,'99.99' ) | Typ=1 Len=6: 32,32,32,46,48,48 | .00 |
| to_char( 0,'90.99' ) | Typ=1 Len=6: 32,32,48,46,48,48 | 0.00 |
| to_char( 0,'fm99.90' ) | Typ=1 Len=3: 46,48,48 | .00 |
| to_char( 0,'fm99.99' ) | Typ=1 Len=2: 48,46 | 0. |
| lpad( '1', 5, ' ' ) | null | 1 |
| lpad( '12345', 6, '_' ) | null | _12345 |
| rpad( '12345', 6, '_' ) | null | 12345_ |