public class Decimal extends ValueType implements ISerializable, IDeserializationCallback
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Decimal
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Decimal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Decimal() |
Decimal(double value) |
Decimal(int value) |
Decimal(int[] bits) |
Decimal(int lo,
int mid,
int hi,
boolean isNegative,
byte scale) |
Decimal(long value) |
Decimal(java.lang.Object instance)
Internal constructor.
|
Decimal(Single value) |
Decimal(UInt32 value) |
Decimal(UInt64 value) |
| Modifier and Type | Method and Description |
|---|---|
static Decimal |
Abs(Decimal value) |
static Decimal |
Add(Decimal d1,
Decimal d2) |
static Decimal |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Decimal, a cast assert is made to check if types are compatible. |
static Decimal |
Ceiling(Decimal d) |
static Decimal |
Clamp(Decimal value,
Decimal min,
Decimal max) |
static int |
Compare(Decimal d1,
Decimal d2) |
int |
CompareTo(Decimal value) |
int |
CompareTo(NetObject value) |
static Decimal |
CopySign(Decimal value,
Decimal sign) |
static Decimal |
Divide(Decimal d1,
Decimal d2) |
boolean |
Equals(Decimal value) |
static boolean |
Equals(Decimal d1,
Decimal d2) |
static Decimal |
Floor(Decimal d) |
static Decimal |
FromOACurrency(long cy) |
static int[] |
GetBits(Decimal d) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
byte |
getScale() |
TypeCode |
GetTypeCode() |
static boolean |
IsCanonical(Decimal value) |
static boolean |
IsEvenInteger(Decimal value) |
static boolean |
IsInteger(Decimal value) |
static boolean |
IsNegative(Decimal value) |
static boolean |
IsOddInteger(Decimal value) |
static boolean |
IsPositive(Decimal value) |
static Decimal |
Max(Decimal x,
Decimal y) |
static Decimal |
MaxMagnitude(Decimal x,
Decimal y) |
static Decimal |
Min(Decimal x,
Decimal y) |
static Decimal |
MinMagnitude(Decimal x,
Decimal y) |
static Decimal |
Multiply(Decimal d1,
Decimal d2) |
static Decimal |
Negate(Decimal d) |
static Decimal |
Parse(java.lang.String s) |
static Decimal |
Parse(java.lang.String s,
IFormatProvider provider) |
static Decimal |
Parse(java.lang.String s,
NumberStyles style) |
static Decimal |
Parse(java.lang.String s,
NumberStyles style,
IFormatProvider provider) |
static Decimal |
Remainder(Decimal d1,
Decimal d2) |
static Decimal |
Round(Decimal d) |
static Decimal |
Round(Decimal d,
int decimals) |
static Decimal |
Round(Decimal d,
int decimals,
MidpointRounding mode) |
static Decimal |
Round(Decimal d,
MidpointRounding mode) |
void |
setJCOInstance(JCObject instance) |
static int |
Sign(Decimal d) |
static Decimal |
Subtract(Decimal d1,
Decimal d2) |
static byte |
ToByte(Decimal value) |
static double |
ToDouble(Decimal d) |
static short |
ToInt16(Decimal value) |
static int |
ToInt32(Decimal d) |
static long |
ToInt64(Decimal d) |
static long |
ToOACurrency(Decimal value) |
static SByte |
ToSByte(Decimal value) |
static Single |
ToSingle(Decimal d) |
java.lang.String |
ToString(IFormatProvider provider) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider) |
static UInt16 |
ToUInt16(Decimal value) |
static UInt32 |
ToUInt32(Decimal d) |
static UInt64 |
ToUInt64(Decimal d) |
static Decimal |
Truncate(Decimal d) |
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<Decimal> result) |
static boolean |
TryParse(java.lang.String s,
JCORefOut<Decimal> result) |
static boolean |
TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<Decimal> result) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializableOnDeserialization, ToIDeserializationCallbackpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Decimal()
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(double value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OverflowException,
IndexOutOfRangeException
public Decimal(int value)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(int[] bits)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
public Decimal(int lo,
int mid,
int hi,
boolean isNegative,
byte scale)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public Decimal(long value)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Decimal(Single value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException
public Decimal(UInt32 value) throws java.lang.Throwable
java.lang.Throwablepublic Decimal(UInt64 value) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Add(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException
public static Decimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Decimal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDecimal instancejava.lang.Throwable - in case of error during cast operationpublic static Decimal Ceiling(Decimal d) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
public static Decimal Clamp(Decimal value, Decimal min, Decimal max) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, FormatException
public static int Compare(Decimal d1, Decimal d2) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public int CompareTo(Decimal value) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public static Decimal CopySign(Decimal value, Decimal sign) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Divide(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, DivideByZeroException, OverflowException, IndexOutOfRangeException
public boolean Equals(Decimal value) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static boolean Equals(Decimal d1, Decimal d2) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static Decimal Floor(Decimal d) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
public static Decimal FromOACurrency(long cy) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public static int[] GetBits(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDeserializationCallbackgetJCOClassName in interface ISerializablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDeserializationCallbackgetJCOInstance in interface ISerializablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName in interface ISerializablegetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDeserializationCallbackgetJCOType in interface ISerializablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic byte getScale()
throws java.lang.Throwable
java.lang.Throwablepublic TypeCode GetTypeCode() throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsCanonical(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionpublic static boolean IsEvenInteger(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
public static boolean IsInteger(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
public static boolean IsNegative(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsOddInteger(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
public static boolean IsPositive(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Max(Decimal x, Decimal y) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static Decimal MaxMagnitude(Decimal x, Decimal y) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static Decimal Min(Decimal x, Decimal y) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static Decimal MinMagnitude(Decimal x, Decimal y) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static Decimal Multiply(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException
public static Decimal Negate(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, NumberStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, OverflowException
public static Decimal Parse(java.lang.String s, NumberStyles style, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OverflowException
public static Decimal Remainder(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, DivideByZeroException, IndexOutOfRangeException, OverflowException
public static Decimal Round(Decimal d) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public static Decimal Round(Decimal d, int decimals) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public static Decimal Round(Decimal d, int decimals, MidpointRounding mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public static Decimal Round(Decimal d, MidpointRounding mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static int Sign(Decimal d) throws java.lang.Throwable
java.lang.Throwablepublic static Decimal Subtract(Decimal d1, Decimal d2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException
public static byte ToByte(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException
public static double ToDouble(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
public static short ToInt16(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException
public static int ToInt32(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
public static long ToInt64(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
public static long ToOACurrency(Decimal value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException
public static SByte ToSByte(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException
public static Single ToSingle(Decimal d) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, ArrayTypeMismatchException, InvalidOperationException
public java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentNullException,
CultureNotFoundException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
TypeInitializationException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
ArrayTypeMismatchException,
InvalidOperationException
public static UInt16 ToUInt16(Decimal value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException
public static UInt32 ToUInt32(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
public static UInt64 ToUInt64(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
public static Decimal Truncate(Decimal d) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
public static boolean TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<Decimal> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException
public static boolean TryParse(java.lang.String s,
JCORefOut<Decimal> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException
public static boolean TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<Decimal> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException