<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNScript-1ispe/decision(at:tolerance:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic8CNScriptC8decision2at9toleranceAA10CNDecisionVSgSo6CMTimea_AKtF"
  },
  "title" : "decision(at:tolerance:)"
}
-->

# decision(at:tolerance:)

The closest decision to the given time within the given tolerance.

```
final func decision(at time: CMTime, tolerance: CMTime) -> CNDecision?
```

## Parameters

`time`

The time of the decision.

`tolerance`

The tolerance time.

## Return Value

A decision representing the closest decision to the given time within the given tolerance. Returns nil if there are none.

---

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)