fix semantic error for checking on double type
check for null and add some tests
Merge pull request #260 from newsletter2go/math_ops_enhancement

fix semantic error for checking on double type