Change type from float to double on block frequency, and add check for +Inf - +Inf operation Reviewed-by: kvn, roland