Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting double to String in Pro C?

RoxyrollersAug 10 2009 — edited Aug 11 2009
I have a variable that I want to convert from a double to a string.

I tried using ltoa and itoa
   double    cur_payment_amt;
   varchar   cur_payment_amt_str[10];

   ltoa(cur_payment_amt,cur_payment_amt_str,10);
Its stripping off the decimal places. So, 523.25 becomes 523. Any idea guys ?
This post has been answered by 710955 on Aug 10 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2009
Added on Aug 10 2009
2 comments
782 views