# explicitDivideByZeroChecks

> When true, divisions by zero are actively validated in code generated by IL2CPP. When false, they are not.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static bool explicitDivideByZeroChecks { get; set; }
```

### Remarks

This setting is only supported for some closed platforms. On those platforms it's a configurable option in the platform build profile, and more information is available in the relevant platform-specific documentation.

**Important**: On the platforms that support this setting, it applies globally to all C# code. It's recommended to use the `[Il2CppSetOption]` attribute instead, which is supported on all platfoms and allows you to apply the equivalent behavior more restrictively to specific methods, classes, or assemblies. For more information, refer to [IL2CPP runtime code checks](/engine/6000.0/manual/scripting/compilation-and-code-reload/script-compilation/backends/il2cpp/il2cpp-runtime-checks.md) in the Unity manual.
