> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.0/api/csharp/yarn/yarn.ivariablestorage/yarn.ivariablestorage.setvalue-2.md).

# SetValue(string,float)

Method in [IVariableStorage](/2.0/api/csharp/yarn/yarn.ivariablestorage.md)

## 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.                      |
