Percentage





5
Date Submitted Thu. Sep. 21st, 2006 7:48 AM
Revision 1 of 1
Scripter Pio
Tags math | Percent | VB.NET
Comments 2 comments
Returns a percentage. There are 3 arguments.

1. complete - How much is done?
2. total - How much is there?
3. maxPercentage - Total percentage possible, usually 100.

Simple, yep.

  Public Shared Function Percent(ByVal complete As Single, ByVal total As Single, ByVal maxPercentage As Single) As Single
    Return (complete / total) * maxPercentage
  End Function
 

Allen Gammel

p-soft.org
Allen / Pio
email: intolerance@gmail.com

Comments

Comments why don't we ?
Mon. Sep. 25th, 2006 1:43 AM    Syntax Master sundaramkumar
  Comments mmmm
Wed. Sep. 27th, 2006 10:28 AM    Newbie RobK410

Voting