Thank you for the responses.
It's not exactly what I wanted.
@Saeed: I tried this as well. The result is fine for a number which has a value behind the comma, but not for all of the following examples:
number result wished result (char)
0 .0 0
11 .0 0.011
1200 1.2 1.2
18750 18.8 18.75
@Raja: I want to cast decimal numbers (as shown in the example for @Saeed) into char values with the right formatation, not char values into foating values.
Thank you for the responses.
It's not exactly what I wanted.
@Saeed: I tried this as well. The result is fine for a number which has a value behind the comma, but not for all of the following examples:
number result wished result (char)
0 .0 0
11 .0 0.011
1200 1.2 1.2
18750 18.8 18.75
@Raja: I want to cast decimal numbers (as shown in the example for @Saeed) into char values with the right formatation, not char values into foating values.
Any help is very welcomed!
Cheers, Stephan