Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 1st, 2004, 01:53 AM
j0sh's Avatar
j0sh j0sh is offline
Ruby On Rails Junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Switzerland
Posts: 476 j0sh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 44 m 20 sec
Reputation Power: 6
convert different data types (string to double)?

hi all!

i have a calculator that i created in pl/sql with oracle forms 9i. everything works fine, the different data types (int, varchar2 etc) dont seem the hurt themselves.

but there's a problem: when i try to divide, then i have unhandled error exceptions. it seems there we have probs with the datatypes.

can somebody tell me how to convert a numerical string to a double variable?

thx & gr33tz
j0sh
__________________
God, you gave man penis and brain, but only enough blood to run one at a time.

my webpage: www.josh.ch
my current project: phpmywebmin.josh.ch - a browser based file management application for webspace

Reply With Quote
  #2  
Old March 1st, 2004, 02:42 PM
Dan Drillich Dan Drillich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Dan Drillich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If you deal with Oracle 9i, then the cast function is available.

Please try:
select cast('11' as NUMBER) from dual;

Regards,
Dan

Reply With Quote
  #3  
Old March 2nd, 2004, 01:48 AM
j0sh's Avatar
j0sh j0sh is offline
Ruby On Rails Junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Switzerland
Posts: 476 j0sh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 44 m 20 sec
Reputation Power: 6
i have no sql queries, it's just a Forms application. is there a function for this like "cast"?

thank you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > convert different data types (string to double)?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT