scoreboard players set #tmp stats_calc 1000

scoreboard players operation #int stats_calc = #in stats_calc
scoreboard players operation #int stats_calc /= #tmp stats_calc

scoreboard players operation #dec stats_calc = #in stats_calc
scoreboard players operation #tmp2 stats_calc = #int stats_calc
scoreboard players operation #tmp2 stats_calc *= #tmp stats_calc
scoreboard players operation #dec stats_calc -= #tmp2 stats_calc
