Eclipse removed an intentional cast to double.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>