> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/valuetostring.md).

# ValueToString

## Overview

This component converts any value coming from an event or a scriptable variable to string. After converting the value it will invoke its Event **ToString**() so it can be connected to any Text UI component.

![](/files/-MTr2CPihJLJbitx9w2O)

## Parameters

### Float Decimals

If the value send is a float value, how many decimals, the value converted to string will have.

### Prefix

A prefix added to the converted  string value. (Optional)&#x20;

### Suffix

A Suffix added to the converted  string value. (Optional)&#x20;

### To String Event

After the value is converted; by calling the method ToString(); This event will be invoked.

## Methods

### ToString(..)

Converts any value to string (int, bool, float, gameObject, Component, Vector3, Vector2).
