Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Math Question, Calculating ratio from percentage
Message
From
20/05/2003 10:52:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/05/2003 10:43:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00790476
Message ID:
00790490
Views:
20
>I need to get a ratio from a percentage. I know how to do it by inverting the fractions then multiplying but the code got ugly really quick!. How do I get 4:1 from 20% and 80%.
>
>Thank You
>Miles

lnNum1 and lnNum2 80 and 20 with inputmask 99% ?

lnRatio = lnNum1/lnNum2
if that's what you mean.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform