Fix MSVC-warnings about double to float truncation.

warning C4305: 'argument' : truncation fromm 'double' to 'float'

Change-Id: I7e419700b26ff66c48562b73db74b45ab1673c23
Reviewed-by: Alan Alpert <aalpert@blackberry.com>