Results 1 to 4 of 4

Thread: [RESOLVED] calculation

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Location
    Bosnia and Herzegovina
    Posts
    65

    Resolved [RESOLVED] calculation

    Hi,

    How do calculate this in VB6

    " 20 - 14.2559 % "

    --
    Adnan,

  2. #2
    Addicted Member
    Join Date
    Mar 2005
    Posts
    238

    Re: calculation

    i think variable = 20 - (20 * 0.142559)

    meh lol i dunno try it
    The Tempest Shall Never Die.

  3. #3
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: calculation

    VB Code:
    1. Dim x As Double
    2. Dim y As Double
    3. Dim z As Double
    4.  
    5.     x = 20
    6.     y = 0.142559
    7.     z = x * (1 - y)
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Location
    Bosnia and Herzegovina
    Posts
    65

    Re: calculation

    thank you both,

    They work

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