Numerical stimuli converting to float values for textstim

I solved this recently using str(int(var))