support histogram interval of type double

See Issue #3810.