By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,509 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,509 IT Pros & Developers. It's quick & easy.

Need to get the decimal part of a number

P: n/a
Hi.

How can I -from an ASP page- get the decimal part of a
number ?

Thanks in advance for all your help.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DecimalPart = CDbl(TheNumber)-CLng(TheNumber)

If you don't care about the sign stick Abs() around the result. And I'm
assuming you want the decimal value, i.e. if the number is 2, you want .0 as
a result.

Ray at home

"Ricardo" <ri*************@enetspeculation.com> wrote in message
news:03****************************@phx.gbl...
Hi.

How can I -from an ASP page- get the decimal part of a
number ?

Thanks in advance for all your help.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.