# SetNumValue Method

## Overloads

| [SetNumValue(Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValue.htm#Qlik_Engine_IGenericVariable_SetNumValue_System_Double_) |  | Sets a numerical value to a variable. |
| --- | --- | --- |

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

## SetNumValue(Double)

Sets a numerical value to a variable.

### Declaration

```

          void SetNumValue([QixName("qVal")] double val)
    
  
```

### Parameters

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

### Remarks

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