<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDecimalNumber/init(mantissa:exponent:isNegative:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDecimalNumber(im)initWithMantissa:exponent:isNegative:"
  },
  "title" : "init(mantissa:exponent:isNegative:)"
}
-->

# init(mantissa:exponent:isNegative:)

Initializes a decimal number using the given mantissa, exponent, and sign.

```
convenience init(mantissa: UInt64, exponent: Int16, isNegative flag: Bool)
```

## Parameters

`mantissa`

The mantissa for the new decimal number object.

`exponent`

The exponent for the new decimal number object.

`flag`

A Boolean value that specifies whether the sign of the number is negative.

## Return Value

An `NSDecimalNumber` object initialized using the given mantissa, exponent, and sign.

## Discussion

The arguments express a number in a type of scientific notation that requires the mantissa to be an integer. So, for example, if the number to be represented is 1.23, it is expressed as 123x10^–2—`mantissa` is 123; `exponent` is –2; and `isNegative`, which refers to the sign of the mantissa, is <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`+  decimalNumberWithMantissa:exponent:isNegative:`](/documentation/Foundation/NSDecimalNumber/decimalNumberWithMantissa:exponent:isNegative:)

Creates and returns a decimal number equivalent to the number specified by the arguments.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)