How can you round to two decimal places?

I have a shooter game and I am calculating accuracy. I have a display function, with it displaying "game.hits/game.shots". However, it goes to six decimal places, which I don't wish to display. I've tried the floor function, but that just rounds it down to zero. Thanks guys :)

Best Answers

Answers

  • asdfGamesasdfGames Member Posts: 15
    Much thanks Socks.
  • asdfGamesasdfGames Member Posts: 15
    Thanks to both of you! This will help with the final touches to my game. I appreciate the fast responses!
Sign In or Register to comment.