Results 1 to 12 of 12

Thread: Double trouble

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Resolved Double trouble

    Hi,

    I recently used something along the lines of:

    VB Code:
    1. Dim d As Double = 5078927777236477
    2. Dim s As String = d.ToString("N")
    3. Debug.WriteLine(s)

    ...and the resulting string isn't the correct representation of the number. I run into this when I displayed a debit card number. Anyone knows what's the problem ?

    Cheers,
    NTG
    Last edited by ntg; Dec 26th, 2004 at 03:55 AM.
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

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