G
Guest
My app is trying to multiply and add some very large numbers. Here is the line that I am am having problems with:
Seconds = CDbl(PartB) * CDbl(16777216)
Seconds is a double and PartB is a short. Partb is 15 before this line. After the multiplication, the value held in seconds is 549420. This obviously isn't correct. I know that the problem is the conversion between types and how much space vb.net uses for its evaluation. However, I'm not sure how to fix it. Any ideas? Thanks for the help.
Seconds = CDbl(PartB) * CDbl(16777216)
Seconds is a double and PartB is a short. Partb is 15 before this line. After the multiplication, the value held in seconds is 549420. This obviously isn't correct. I know that the problem is the conversion between types and how much space vb.net uses for its evaluation. However, I'm not sure how to fix it. Any ideas? Thanks for the help.