diff --git a/py/hexagram/path.py b/py/hexagram/path.py index 68cb610..fb0ebe8 100644 --- a/py/hexagram/path.py +++ b/py/hexagram/path.py @@ -42,7 +42,16 @@ class PathCommand(): if len(self.arg) > 0: self.args.append(self.arg) - ret = [self.command, self.args] + args = list() + + for arg in self.args: + try: + arg.index('.') + args.append(float(arg)) + except ValueError: + args.append(int(arg)) + + ret = [self.command, args] self.command = None self.args = list()