Results 1 to 4 of 4

Thread: format a Double variable [Resolved]

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question format a Double variable [Resolved]

    When I view a Double variable, it shows 0.6, 1.2, 1
    How do I format it to 00.60, 01.20, 01.11?
    Last edited by albertlse; Aug 25th, 2003 at 07:44 PM.

  2. #2
    Lively Member
    Join Date
    Jul 2003
    Location
    Kuala Lumpur (Malaysia)
    Posts
    92

    Hmmm...

    Hi,

    Format(myValue, "#,###.00")


  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, if you want to keep the true value internally, and only format it for display to the user....

    then...

    MyDouble.ToString("00.00")

    instead of Format function, which I believe is part of the VisualBasic namespace...

  4. #4

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Thumbs up

    thanx. it's working fine now

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