Subscribe

By RSS
By Email

Delivered by FeedBurner

Recent Comments

    • Piyush K - Can we dynamically change the Mouse over text of a…Can we dyn
    • mutyala rao - This doesn't run on OS390 process scheduler?…This doesn
    • XML - HI, Please send the documention on XML Publisher to following email…HI, Please
    • XML - Hi, Please send any documention on XML Publisher. Thanks, Sridhara Raju…Hi, Please
    • Ketan Benegal - Have you published the second part of this blog?? Interested…Have you p

Ask the Experts – 47

By Nitin Pai on November 20th, 2008 under Ask the Expert.

Hi,

This is related to data conversion.
I want to convert a string to a number. The string contains zero at the first position. while conversion, other values get converted except the zero. During print, we can print the zero using edit mask. But I want the number to be stroed with Zero at the first position.
Is there any ways to achieve it? Please explain.

Thanks
Radha.

Thanks for posting your question!
If you need to store ZERO at the first position then you will need to use character data type. Or use edit mask (as you have approached) to print zero as the first field.

You cannot store a value with leading zero followed by numeric data in a field with datatype number.

Thanks
Nitin Pai

Bookmark and Share

Comments:none;



Comments are closed.