o print a leading zero use a template as shown below. vsql=> select to_char(0.123,'0.000'); to_char --------- 0.123 (1 row) vsql=> select to_char(.123,'0.000'), to_number('.123','0.999'); to_char | to_number ---------+----------- 0.123 | 0.123 Note: Please see Template Patterns for Numeric Formatting in the SQL Reference Manual
Comments