1. Int
  2. zero
    1. 2022-8-24
    2. 2022-8-9
    3. 2022-7-25
    4. 2022-6-20
    5. 2022-6-2
    6. 2022-5-18
    7. 2022-5-4
    8. 2022-4-4
    9. 2022-3-13
    10. 5.6.2
    11. 5.6.1
    12. 5.6.0
    Type PropertySwiftFoundationSwift

    zero

    The zero value.

    • Available because Self conforms to AdditiveArithmetic.

    • Available when Self conforms to ExpressibleByIntegerLiteral

    static var zero: Self { get }

    Overview

    Zero is the identity element for addition. For any value, x + .zero == x and .zero + x == x.