Hi,
Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.
I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.
At the moment, kills = 172 and deaths = 145. Ratio results in 1,1862068. How can I round this number up and turn this into a number with 2 integers after the dot? ( 1.19 )
I tried a hundred things so far but I cannot figure this out.
Any help appreciated. Thanks!
Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.
I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.
Code:
Dim ratio As Decimal ratio = Val(txt_kills.Text / txt_deaths.Text)
I tried a hundred things so far but I cannot figure this out.
Any help appreciated. Thanks!
Comment