of     1   

andymewborn
#31216269Monday, August 09, 2010 5:02 AM GMT

For a Kill/Death Ratio, I know I have to divide kills by deaths. For an example: 1 / 3 It will result in 0.33333333333333 How do I make it just say 0.3? Is there a math call for it? I checked the wiki. Like: math.???(1/3)
Fungalmungal
#31216350Monday, August 09, 2010 5:04 AM GMT

math.floor(1/3 * 10)/10
crazypotato4
#31216418Monday, August 09, 2010 5:05 AM GMT

uhhh... maybe this?: math.floor(1/3,0.1) idk, but it would probably use math.floor or math.ceiling, since it seems youre trying to round... and is there any way to just round it to the closest number, not just round up or down? o.0
Oysi
#31216470Monday, August 09, 2010 5:06 AM GMT

[ Content Deleted ]
Fungalmungal
#31216490Monday, August 09, 2010 5:06 AM GMT

math.floor(number + .5) rounds to the closest number.
andymewborn
#31216589Monday, August 09, 2010 5:08 AM GMT

Thanks, fungal.
Oysi
#31216629Monday, August 09, 2010 5:09 AM GMT

[ Content Deleted ]
andymewborn
#31216709Monday, August 09, 2010 5:11 AM GMT

Okay, thanks.
Sharksie
#31216868Monday, August 09, 2010 5:14 AM GMT

try nothing, because 1/3 is always 0.3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 kthxbai
Sharksie
#31217171Monday, August 09, 2010 5:21 AM GMT

Ignore my last post CUZ I JUST DID IT!!!! >:D local HAK = (3/1) local SHAK = (tostring(HAK)) local NHAK = (string.len(SHAK)) local purehak = (NHAK) - 2 local leveler = (10^(purehak)) print(HAK * leveler)
andymewborn
#31262089Monday, August 09, 2010 8:13 PM GMT

You have some problems to work out.

    of     1