In addition to the other comments:
CDec returns a Decimal value.
CDbl returns Double value.
As you may know TypeOf Decimal IsNot TypeOf Double. Decimal is a base 10
floating point number, while Double is a base 2 floating point number. They
have different precisions & ranges.
If you have Option Strict On (you do have Option Strict On don't you)
attempting to use CDbl and assign it to a Decimal will cause a compile
error. While attempting to use CDec and assign it to a Double will cause an
implicit conversion from Decimal to Double (read it will work, but you
really did CDbl(CDec(?)).
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"James" <ja**********@gmail.comwrote in message
news:11********************@i42g2000cwa.googlegrou ps.com...
Can anyone explain the difference between these two conversion
functions? Thanks