---
title: Convert a text into a number using
description: Convert a text into a number using
---

[Centrldesk help center ](https://www.centrldesk.com/help)

# [Convert a text into a number using](https://www.centrldesk.com/help/library-math-parse)

 Written by [Sebastian](https://www.centrldesk.com/help/author/sebastian) | Apr 25, 2022 4:21:58 PM

The Parse Number block converts a text into a number.

Example A:

Text input value 5 is converted to number 5.

Example B:

Text input value 'Text' cannot be converted to a number. No result is returned.

Example C:

By opening the dialog by clicking on the gear icon, the localization can be set.

Result:

The input text is converted to a number. If the text cannot be converted to a number, no result is returned.

Tips and best practices:

Make sure that the text you want to convert is a number.

All mathematical blocks can calculate floating-point numbers. The separator is a dot, not a comma. Example: 2.7

Library:

Math

[View full post](https://www.centrldesk.com/help/library-math-parse)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Sebastian"
  },
  "dateModified" : "2022-10-06T08:02:56.919Z",
  "datePublished" : "2022-04-25T16:21:58Z",
  "headline" : "Convert a text into a number using Parse Number block",
  "image" : {
    "@type" : "ImageObject",
    "height" : 270,
    "url" : "https://7836215.fs1.hubspotusercontent-na1.net/hubfs/7836215/library-math-parse-2.png",
    "width" : 980
  },
  "mainEntityOfPage" : "https://www.centrldesk.com/help/library-math-parse",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Centrldesk help center"
  }
}
```