# SetNumValueAsync Method

## Overloads

| [SetNumValueAsync(Double)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm#Qlik_Engine_GenericVariable_SetNumValueAsync_System_Double_) |  | Sets a numerical value to a variable. |
| --- | --- | --- |
| [SetNumValueAsync(AsyncHandle, Double)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm#Qlik_Engine_GenericVariable_SetNumValueAsync_Qlik_Engine_AsyncHandle_System_Double_) |  | Sets a numerical value to a variable. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm)

## SetNumValueAsync(Double)

Sets a numerical value to a variable.

### Declaration

```

          public Task SetNumValueAsync([QixName("qVal")] double val)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Double | val | Value of the variable. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericVariable.SetNumValueAsync(Double)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValueAsync.htm#Qlik_Engine_IGenericVariable_SetNumValueAsync_System_Double_)

### Remarks

These changes are not persistent. They only last the duration of the engine session.

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetNumValueAsync.htm)

## SetNumValueAsync(AsyncHandle, Double)

Sets a numerical value to a variable.

### Declaration

```

          public Task SetNumValueAsync(AsyncHandle asyncHandle, [QixName("qVal")] double val)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Double | val | Value of the variable. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericVariable.SetNumValueAsync(AsyncHandle, Double)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValueAsync.htm#Qlik_Engine_IGenericVariable_SetNumValueAsync_Qlik_Engine_AsyncHandle_System_Double_)

### Remarks

These changes are not persistent. They only last the duration of the engine session.