# ToDecimal (Any value)

| **Name**    | ***ToDecimal***                                                                                    |
| ----------- | -------------------------------------------------------------------------------------------------- |
| Syntax      | ToDecimal (Any value)                                                                              |
| Purpose     | To convert a value into a decimal.                                                                 |
| Description | Returns a decimal representing the specified value. Returns null if the value cannot be converted. |
| Return Type | Decimal                                                                                            |
| Parameters  | value \[System.Object] – Value to be converted                                                     |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FRhCBE1tAZ9Xtvt8AlbUL%2F0.png?alt=media)

**Example**

In this example, we will pass a value with data type set to string, to the to the function transformation object using a *Variables* object.

Where,

*value* = 03.784000

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F4ttBpu7sK9Iv0mjnLdjm%2F1.png?alt=media)

Mapping the output value to a destination object shows that the data type has been converted to decimal, hence the conversion was successful.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FAo2T1KrXr0h1pxANUqLU%2F2.png?alt=media)
