Skip to content

How to use Ints.abs with Java Bindings? #4947

Discussion options

You must be logged in to vote

The java API does not expose the "abs" function. It is really just treated as a shorthand for (if (>= x 0) x (- x)) so you can define an auxiliary function "abs" in Java that produces this term.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lorenzleutgeb
Comment options

Answer selected by lorenzleutgeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants