Results 1 to 6 of 6

Thread: How Can I Do This PLEASE READ ME

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    how can i dived 2 numbers and make then show up to 500 digigt wit hi do this
    ---------------------------------------------
    code:
    text3.text = text1.text / text2.text
    ---------------------------------------------

    and it only comes up with the frst 10 digits i wnat it to go to 500 digits not 10

  2. #2
    Member
    Join Date
    Jun 1999
    Posts
    38

    Post

    do you mean show 500 decimal places?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    yeah i dont care as long as it much more then 100 places

  4. #4
    Member
    Join Date
    Jun 1999
    Posts
    38

    Post

    well, i can give you a hint...

    Dim dbl as Double

    dbl = Val(Text1.Text) / Val(Text2.Text)
    Text3.Text = dbl


    double will hold 300 and somethin decimal places i think, problem is it will return the number in scientific notation, so you still need to figure out how to convert it to a regular format, which im not sure how to do

    ------------------
    I swear you guys rip on me 13 or 14 more times, i'm outta here...


  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    it dont work

  6. #6
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    VB is incapable of doing up to 500 digits after the decimal point.
    Here's a way to show 28 places: (You can do up to 324 with Double but then it will give you the scientific form of the number)

    Text3.Text = CDec(Text1.Text) / CDec(Text2.Text)

    The problem with this is: The more numbers you have to the right of the decimal point, the less you can have to the left...
    If you have a number with 28 places after the decimal point, the number to the left of the decimal point can only go up to seven...

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



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