java_biginteger.compareto

Java BigInteger.compareTo()

Java BigInteger.compareTo() is a method in the Java BigInteger class that compares two BigInteger values. It returns -1, 0, or 1 depending on whether the current BigInteger is less than, equal to, or greater than the specified value. Introduced in Java 2004 with Java 5, compareTo() is frequently used for ordering and comparing large integers.

https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html

java_biginteger.compareto.txt · Last modified: 2025/02/01 06:49 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki