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

Calculation Overflow

P: n/a
FNM
My calculation is CLng(56238749.9943 * 100), but it it overflow. How
to do oi right way ?
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fa*****@lycos.com (FNM) wrote in news:b2178b85.0402291951.26d91e14
@posting.google.com:
My calculation is CLng(56238749.9943 * 100), but it it overflow. How
to do oi right way ?


Your calculation would result in
5623874999 which is larger than maximum allowable long:
2147483647 is the
Depending on what you want to do,
Int(CDbl(56238749.9943 * 100))
may be useful.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.