to_decimal method

to_decimal

Converts to Decimal.

Raises an exception if the metadata value cannot be converted. If the original value is string based, the default culture from SignatureSettings.default_culture is used.

def to_decimal(self):
    ...

Returns: decimal.Decimal: The Image Metadata Signature value as Decimal.

to_decimal

Converts the metadata signature value to a decimal.

Raises an exception if the metadata value could not be converted.

def to_decimal(self, provider):
    ...
Parameter Type Description
provider System.IFormatProvider Format data provider to use with data conversion operations.

Returns: float: The metadata signature value as a decimal.

See Also