Fix precision warning by changing implicit double literal to explicit float literal