Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

increasing a number by a percentage

$
0
0
i hava a method that i needs to increase variable by 20% and i am not sure how to do this because in normal math i would just to : ( n / 100 ) * 120

but you cant do that in java because it dosent take into account the remainder

any help is appreciated
Thanks dale

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>