MonobjcMonobjc Documented Class Library
DecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero Method (roundingMode, scale, raiseOnExactness, raiseOnOverflow, raiseOnUnderflow, raiseOnDivideByZero)
NamespacesMonobjc.FoundationNSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(NSRoundingMode, Int16, Boolean, Boolean, Boolean, Boolean)

Returns an NSDecimalNumberHandler object with customized behavior.

Original signature is '+ (id)decimalNumberHandlerWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)raiseOnExactness raiseOnOverflow:(BOOL)raiseOnOverflow raiseOnUnderflow:(BOOL)raiseOnUnderflow raiseOnDivideByZero:(BOOL)raiseOnDivideByZero'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id DecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(
	NSRoundingMode roundingMode,
	short scale,
	bool raiseOnExactness,
	bool raiseOnOverflow,
	bool raiseOnUnderflow,
	bool raiseOnDivideByZero
)
Public Shared Function DecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero ( _
	roundingMode As NSRoundingMode, _
	scale As Short, _
	raiseOnExactness As Boolean, _
	raiseOnOverflow As Boolean, _
	raiseOnUnderflow As Boolean, _
	raiseOnDivideByZero As Boolean _
) As Id
public:
static Id^ DecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(
	NSRoundingMode roundingMode, 
	short scale, 
	bool raiseOnExactness, 
	bool raiseOnOverflow, 
	bool raiseOnUnderflow, 
	bool raiseOnDivideByZero
)
Parameters
roundingMode (NSRoundingMode)
The rounding mode to use. There are four possible values: NSRoundUp, NSRoundDown, NSRoundPlain, and NSRoundBankers.
scale (Int16)
The number of digits a rounded value should have after its decimal point.
raiseOnExactness (Boolean)
If YES, in the event of an exactness error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method.
raiseOnOverflow (Boolean)
If YES, in the event of an overflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method
raiseOnUnderflow (Boolean)
If YES, in the event of an underflow error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method
raiseOnDivideByZero (Boolean)
If YES, in the event of a divide by zero error the handler will raise an exception, otherwise it will ignore the error and return control to the calling method
Return Value
An NSDecimalNumberHandler object with customized behavior.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)