What I said is that value is using the ‘eval’ PHP function and will work with any correct PHP code. $data works because it is passed to the function, so you need to be very careful of what you include in there.
I thought that GBPBalance was a function not an attribute, and I suggested to pass the number of decimals to the function so you return the attribute with a number_format function. Your solution is correct.
Yeah… and no matter how long you are with it, you maintain that wonderful learning curve full of surprises. And when you think you know enough, the dev team comes with better features…
btw: always check its internal code, those small things will be easy figured out