During my battles I count the number of actions the user takes, I then divide that by the time it took to complete the battle. However, when I print them out with battle_result, I get rounded numbers with not decimals. How would I get decimals?
x = 4
cx = contents.text_size("Time(" + $game_variables[36].to_s + ") / Act(" + $game_variables[37].to_s + ") =").width
self.contents.draw_text(x, 32, cx, 32, "Time(" + $game_variables[36].to_s + ") / Act(" + $game_variables[37].to_s + ") =")
style_result = $game_variables[36] / $game_variables[37]
cx = contents.text_size("Style(" + style_result.to_s + ")").width
self.contents.draw_text(x, 64, cx, 32, "Style(" + style_result.to_s + ")")
cx = contents.text_size("Time(" + $game_variables[36].to_s + ") / Act(" + $game_variables[37].to_s + ") =").width
self.contents.draw_text(x, 32, cx, 32, "Time(" + $game_variables[36].to_s + ") / Act(" + $game_variables[37].to_s + ") =")
style_result = $game_variables[36] / $game_variables[37]
cx = contents.text_size("Style(" + style_result.to_s + ")").width
self.contents.draw_text(x, 64, cx, 32, "Style(" + style_result.to_s + ")")