What happens when there is a remainder in api.Div() #865
sid-alluri
started this conversation in
General
Replies: 1 comment 1 reply
-
Using lookup solved the issue for me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From what I understood,
api.Div()
constrains a = b * c when a/b = c. I am confused about how to perform a division that yields a remainder. For instance, when I perform the division of 6655/512, the output is a very big number. What does the output represent?Code:
api.Println(api.Div(frontend.Variable(6655), frontend.Variable(512)))
Output:
div_test.go:40 102413818701418340780171368180050714526739360352593042622272770898317541389
Beta Was this translation helpful? Give feedback.
All reactions