Thanks for the help folks I've tried both methods and come up with the same issue.
I get bad arguement #5 expecting string got no value? Any ideas?
Code:
bar.value:SetFormattedText('|cff%02x%02x%02x%s|r.%s%%', self.ColorGradient(min/max, unpack(self.colors.smooth)), numberize(cur), d)
Is there something else I need to pass to SetFormattedText? |cff%02x%02x%02x%s|r.%s%% this bit it total greek to me 0.0
Thanks in advance