added floating point test; passed. screened for string in total or discount; amended function to pass