|
-
Dec 5th, 2002, 05:21 PM
#1
Thread Starter
Addicted Member
Why does VB.Net round the calculated results to whole number?
The result should be something like 0.001 but it rounds the number to 1.
I tried dimming the variable as long, double, int64, but didn't work.
Any way to do this?
Thanks in advance.
-
Dec 5th, 2002, 05:27 PM
#2
Thread Starter
Addicted Member
um.. lol
double works.. heh.
sorry.
-
Dec 5th, 2002, 06:12 PM
#3
Sleep mode
decimal should work as well.
-
Dec 5th, 2002, 07:04 PM
#4
The reason being that Int64, Long,Short, and Integer are all whole number variables.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|