diff options
-rw-r--r-- | calc.erl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -14,6 +14,8 @@ factor(Input, Number1) when is_integer(Number1) or is_float(Number1) -> factor([], Number) -> {[], Number}. +factorExtended([$ |Tail], Result) -> + factorExtended(Tail, Result); factorExtended([$^|Tail], Result) -> factor(Tail, Result); factorExtended(Tail, Result) -> |