Change float to double.

Signed-off-by: CyberZHG <cyberzhg@gmail.com>