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