WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToDecimal Method (value, precision, scale)
NamespacesIBM.Broker.PluginNBElementConvertToDecimal(NBElement, Int32, Int32)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a Decimal if required using the specified precision and scale.
Declaration Syntax
C#Visual BasicVisual C++F#
public static decimal ToDecimal(
	NBElement value,
	int precision,
	int scale
)
Public Shared Function ToDecimal ( _
	value As NBElement, _
	precision As Integer, _
	scale As Integer _
) As Decimal
public:
static Decimal ToDecimal(
	NBElement^ value, 
	int precision, 
	int scale
)
static member ToDecimal : 
        value:NBElement * 
        precision:int * 
        scale:int -> decimal 
Parameters
value (NBElement)
The element whose value is to be converted.
precision (Int32)
The precision of the element.
scale (Int32)
The scale of the element.
Return Value
The current element's value converted to a Decimal data type using the specified precision and scale.
Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a Decimal with the given precision and scale.

Assembly: IBM.Broker.Plugin (Module: IBM.Broker.Plugin) Version: 8.0.0.0