It's telling you that getAttr returns an array of four floating point values in this case. So change float $dupCorrectiveVal; to float $dupCorrectiveVal[4];