Use float instead of int to have better accuracy

Bug:16552376
Change-Id: I92f5bb993df788f4c503052629cb06467f5bfaad
1 file changed