So I have the following situation:
create table test1(c1 number, c2 varchar2(250 char));
/
insert into test1 values(0.11, 0.11);
/
select * from test1;
will give me:
C1 C2
0.11 .11
I want to store a number like 0.11 as it is, without removing the 0. Problem is that in that varchar2 column I can also store values like "1.123", "0.123456789", "test123". So basically it can be a number with any precision or even a string.
I think my only chance is to use the "fmt" parameter of to_char, but I can't find a mask that could solve any given number of digits and strings