# SetValue(string,float)

Method in [IVariableStorage](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.ivariablestorage)

## Summary

Stores a `float` in this VariableStorage.

```csharp
void SetValue(string variableName, float floatValue);
```

## Parameters

| Name                  | Description                               |
| --------------------- | ----------------------------------------- |
| `string` variableName | The name to associate with this variable. |
| `float` floatValue    | The number to store.                      |
