MonobjcMonobjc Documented Class Library
NSRoundingMode Enumeration
NamespacesMonobjc.FoundationNSRoundingMode

These constants specify rounding behaviors.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSRoundingMode
Public Enumeration NSRoundingMode
public enum class NSRoundingMode
Members
MemberDescription
NSRoundPlain

Round to the closest possible return value; when caught halfway between two positive numbers, round up; when caught between two negative numbers, round down.

Available in Mac OS X v10.0 and later.


NSRoundDown

Round return values down.

Available in Mac OS X v10.0 and later.


NSRoundUp

Round return values up.

Available in Mac OS X v10.0 and later.


NSRoundBankers

Round to the closest possible return value; when halfway between two possibilities, return the possibility whose last digit is even.

In practice, this means that, over the long run, numbers will be rounded up as often as they are rounded down; there will be no systematic bias.

Available in Mac OS X v10.0 and later.


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)