api.Div leading to a float #709
Unanswered
infinite-pursuits
asked this question in
Q&A
Replies: 1 comment 2 replies
-
See #711 (comment). In short, gnark does not support floating-point arithmetic. I do recommend adapting the algorithms such that you wouldn't have to perform floating-point operations. For example, instead of L2 metric you could use L1 metric. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I do
api.Div
in my circuit. The result of this division should be a float and it is represented as a big number in the circuit. How do I interpret this big number? Like for negative integers, -1 gets converted to P-1. Looking for a similar way to interpret.Beta Was this translation helpful? Give feedback.
All reactions