print number (int/float) right aligned before defined (to_x) position

def num(self, num, h=None, to_x=None, format="%.2f", change_style=None, change_size=None):
        """print number (int/float) right aligned before defined (to_x) position
        """
        self.txt(format % num, h=h, to_x=to_x, change_style=change_style, change_size=change_size)