Fixes issue #1888

Created a templated function CMath::fequals() in Math.h and called this function in TParameter::compare_ptype() for floating point types.