Explicit calls to double().
Merge pull request #15 from dpo/master

Explicit calls to double().