Robuster size checking for floating point types.
Merge pull request #379 from TsudaKageyu/sizecheck

Robuster size checking for floating point types.