NegativeInt
Deprecated
Use the kotools.types.NegativeInt type instead.
Replace with
import kotools.types.NegativeInt
Content copied to clipboard
NegativeInt
Content copied to clipboard
Representation of negative integers, including zero.
Types
Link copied to clipboard
object Companion
Contains declarations for holding or building a NegativeInt.
Link copied to clipboard
Error thrown when creating a NegativeInt fails.
Functions
Link copied to clipboard
Link copied to clipboard
Returns this value decremented by one. If this value is the minimum, it returns the maximum value instead.
Link copied to clipboard
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Link copied to clipboard
Returns this value incremented by one. If this value is the maximum, it returns the minimum value instead.
Link copied to clipboard
Returns the negative of this value.