Skip to content
Snippets Groups Projects
Commit 41f9f744 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added some TODO's to numeric rules.

parent 4378743c
No related branches found
No related tags found
No related merge requests found
......@@ -114,10 +114,12 @@ def match_divide_numerics(node):
if 1 < gcd <= nv:
# 2 / 4 -> 1 / 2
# TODO: Test with negations!
return [P(node, reduce_fraction_constants, (gcd,))]
if nv > dv:
# 4 / 3 -> 1 + 1 / 3
# TODO: Test with negations!
return [P(node, fraction_to_int_fraction,
((nv - mod) / dv, mod, dv))]
elif n.is_numeric() and d.is_numeric():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment