Fixed threshold error

Threshold was being translated to integer. Added an analogous argument
read in method for floating types.