|
-
Aug 29th, 2005, 11:44 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Double issues
I am pulling my hair out with this. I have VB.Net code that works, but the C# alternative does not.
VB.Net
Dim MyVal as Double = 500 / 792
'MyVal then equals 0.631313131313131
C#
double MyVal = 500 / 792;
//MyVal then equals 0.0
How can I get the C# code to give me the same result as the VB.Net?
Last edited by blindlizard; Aug 30th, 2005 at 03:32 AM.
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
|