Module using decimals in Get Rating sequence

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I change this to use decimals? Instead of the answer being 50 it is
..50 or can I used percents like 50%.

Thank you in advance for your assistance.

Laura

Public Function GetPROFITRating(dblPROFIT As Double) _
As Integer
Select Case dblPROFIT
Case Is < 50
GetPROFITRating = 1
Case Is < 60
GetPROFITRating = 2
Case Is < 70
GetPROFITRating = 3
Case Is < 80
GetPROFITRating = 4
Case Else
GetPROFITRating = 5
End Select
End Function
 
Laura said:
How do I change this to use decimals? Instead of the answer being 50 it is
.50 or can I used percents like 50%.

Public Function GetPROFITRating(dblPROFIT As Double) _
As Integer
Select Case dblPROFIT
Case Is < 50
GetPROFITRating = 1
Case Is < 60
GetPROFITRating = 2
Case Is < 70
GetPROFITRating = 3
Case Is < 80
GetPROFITRating = 4
Case Else
GetPROFITRating = 5
End Select
End Function


Is this all you want

Case Is < .50
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top