adds support for double
Merge pull request #20 from leandromoreira/master

Add support for double