Contents

init(exactly:)

Creates a new decimal value exactly representing the provided integer.

Declaration

init?<T>(exactly source: T) where T : BinaryInteger

Parameters

  • source:

    The integer to convert.

Discussion

If source isn’t representable as a Decimal instance, the result is nil.

See Also

Creating a decimal from an integer