Warnings--
Merge pull request #395 from pornel/analyzer

Warnings--
Use double instead of long to avoid ambiguous error
Merge pull request #399 from andrew/patch-1

Use double instead of long to avoid ambiguous error
std:floor returns double
More specific types

HT @QuLogic