Uses of Class
com.upokecenter.cbor.CBORNumber
| Package | Description |
|---|---|
| com.upokecenter.cbor |
-
Uses of CBORNumber in com.upokecenter.cbor
Methods in com.upokecenter.cbor that return CBORNumber Modifier and Type Method Description CBORNumberCBORNumber. Abs()Returns the absolute value of this CBOR number.CBORNumberCBORNumber. Add(CBORNumber b)Returns the sum of this number and another number.CBORNumberCBORObject. AsNumber()Converts this object to a CBOR number.CBORNumberCBORNumber. Divide(CBORNumber b)Returns the quotient of this number and another number.static CBORNumberCBORNumber. FromByte(byte inputByte)Converts a byte (from 0 to 255) to an arbitrary-precision decimal number.static CBORNumberCBORNumber. FromCBORObject(CBORObject o)Creates a CBOR number object from a CBOR object representing a number (that is, one for which the IsNumber property in.NET or the isNumber() method in Java returns true).static CBORNumberCBORNumber. FromInt16(short inputInt16)Converts a 16-bit signed integer to an arbitrary-precision decimal number.CBORNumberCBORNumber. Multiply(CBORNumber b)Returns a CBOR number expressing the product of this number and the given number.CBORNumberCBORNumber. Negate()Returns a CBOR number with the same value as this one but with the sign reversed.CBORNumberCBORNumber. Remainder(CBORNumber b)Returns the remainder when this number is divided by another number.CBORNumberCBORNumber. Subtract(CBORNumber b)Returns a number that expresses this number minus another.Methods in com.upokecenter.cbor with parameters of type CBORNumber Modifier and Type Method Description CBORNumberCBORNumber. Add(CBORNumber b)Returns the sum of this number and another number.intCBORNumber. compareTo(CBORNumber other)Compares this CBOR number with another.CBORNumberCBORNumber. Divide(CBORNumber b)Returns the quotient of this number and another number.CBORNumberCBORNumber. Multiply(CBORNumber b)Returns a CBOR number expressing the product of this number and the given number.CBORNumberCBORNumber. Remainder(CBORNumber b)Returns the remainder when this number is divided by another number.CBORNumberCBORNumber. Subtract(CBORNumber b)Returns a number that expresses this number minus another.