calculating problem
#4

If only you didn't use animals and fart as variable names
If it's a percent, you need to use float-float divisions to work it out.
new Floatumi = float(agoz)/float(bgoz) *100.0;

or you could do agoz*100 / bgoz, which still give a percent, but with a margin of error.
Reply


Messages In This Thread
calculating problem - by Airblog - 09.08.2016, 13:08
Re: calculating problem - by [cS]Owain - 09.08.2016, 13:13
Re: calculating problem - by SyS - 09.08.2016, 13:13
Re: calculating problem - by PrO.GameR - 09.08.2016, 13:15
Re: calculating problem - by Airblog - 09.08.2016, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)