If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Need help on division

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-04, 03:05
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
Need help on division

Hi there,

How to come out the ouput i wanted.
I need to divide sumting like this

rs("Num")=73.1
request.form("Volume")=99

p=cbl(request.form("Volume"))*1/(21.5*28*cdbl(rs("Num")))

the output would be like this 2.2434554543E-03 or sumting like that.

but wat i need is 0.002243........
How can i make the output to turn out like wat i wan?
Thanx
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 19:19
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
have you tried using the formatnumber function to change the way it looks?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On