Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Computing Ratio
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01469550
Message ID:
01469559
Views:
52
>I'm stuck on this tonight. Too much wine while coding.
>
>
>double ratio = Math.Floor((double)Whse1Qty * (1 / (double)Ratio));
>
>
>
>Whse1Qty = 2 and Ratio = 10. This always returns 0.
>
>What's wrong here?


Floor(0.2) is 0
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform