subtraction questions

J

Joey Martin

I have a numeric field in my database.
How do I subtract?

frequencypercent is a decimal and in this case is .20

multiplierrate= 100 - rs_fees("classified_freq_percent")
 
J

Joey Martin

well, kind of worked.

The classified_freq_rate is actually .20
Therefore it should be 1 (i stated 100 earlier but meant 1) -.20 and equals
..80
But, using the cdbl, it shows 0.85

Any ideas?
 
M

Mark Schupp

See what is actually happening.

Response.Write rs_fees("classified_freq_percent") & "<br>"
Response.Write CDbl(rs_fees("classified_freq_percent")) & "<br>"
Response.Write (100-CDbl(rs_fees("classified_freq_percent")) ) & "<br>"
multiplierrate= 100 - rs_fees("classified_freq_percent")

Response.Write multiplierrate & "<br>"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top