<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Scanner/scanUnsignedLongLong(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScanner(im)scanUnsignedLongLong:"
  },
  "title" : "scanUnsignedLongLong(_:)"
}
-->

# scanUnsignedLongLong(_:)

Scans for an unsigned long long value from a decimal representation, returning a found value by reference.

```
func scanUnsignedLongLong(_ result: UnsafeMutablePointer<UInt64>?) -> Bool
```

## Parameters

`result`

Upon return, contains the scanned value. Contains `ULLONG_MAX` on overflow.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the receiver finds a valid decimal integer representation, otherwise <doc://com.apple.documentation/documentation/Swift/false>. Overflow is considered a valid decimal integer representation.

## Discussion

All overflow digits are skipped. Skips past excess digits in the case of overflow, so the receiver’s position is past the entire decimal representation.

Invoke this method with `NULL` as `unsignedLongLongValue` to simply scan past an unsigned long decimal integer representation.

---

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)