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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/valuetostring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
