What about x *= -1;
? Do you really want a library function for this?
More Related Contents:
- How to generate Random point(x,y) in Java [closed]
- Fast algorithm to calculate n! / (q!)^r
- How to make fibonacci method? [closed]
- is there an algorithm to reverse a chosen part of a number? [closed]
- Decrement on While loops
- How to resolve a Java Rounding Double issue [duplicate]
- How to parse a mathematical expression given as a string and return a number? [duplicate]
- Convert latitude/longitude point to a pixels (x,y) on mercator projection
- Mod in Java produces negative numbers [duplicate]
- How does java do modulus calculations with negative numbers?
- How can I check if multiplying two numbers in Java will cause an overflow?
- Java Round up Any Number
- Rounding BigDecimal to *always* have two decimal places
- midpoint between two latitude and longitude
- BigInteger.pow(BigInteger)?
- Calculating the angle between two lines without having to calculate the slope? (Java)
- Fast transcendent / trigonometric functions for Java
- Java check if two rectangles overlap at any point
- What’s the best practice to round a float to 2 decimals? [duplicate]
- Algorithm to generate Poisson and binomial random numbers?
- Recursive Fibonacci memoization
- Logarithm for BigInteger
- pow (x,y) in Java
- What’s a good library for parsing mathematical expressions in java? [closed]
- Finding Signed Angle Between Vectors
- Easy way to keeping angles between -179 and 180 degrees
- How do I create an int array with randomly shuffled numbers in a given range [duplicate]
- Combinatoric ‘N choose R’ in java math?
- Find the max of 3 numbers in Java with different data types
- How to Solve Equations with java?