Results 1 to 4 of 4

Thread: [RESOLVED] Double issues

Threaded View

  1. #1

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    Resolved [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.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width