MonobjcMonobjc Documented Class Library
NSDecimalNumberHandler Constructor (roundingMode, scale, raiseOnExactness, raiseOnOverflow, raiseOnUnderflow, raiseOnDivideByZero)
NamespacesMonobjc.FoundationNSDecimalNumberHandlerNSDecimalNumberHandler(NSRoundingMode, Int16, Boolean, Boolean, Boolean, Boolean)

Returns an NSDecimalNumberHandler object initialized so it behaves as specified by the method’s arguments.

Original signature is '- (id)initWithRoundingMode:(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 NSDecimalNumberHandler(
	NSRoundingMode roundingMode,
	short scale,
	bool raiseOnExactness,
	bool raiseOnOverflow,
	bool raiseOnUnderflow,
	bool raiseOnDivideByZero
)
Public Sub New ( _
	roundingMode As NSRoundingMode, _
	scale As Short, _
	raiseOnExactness As Boolean, _
	raiseOnOverflow As Boolean, _
	raiseOnUnderflow As Boolean, _
	raiseOnDivideByZero As Boolean _
)
public:
NSDecimalNumberHandler(
	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 initialized NSDecimalNumberHandler object initialized with customized behavior. The returned object might be different than the original receiver.
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)