> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/text/toint.md).

# toInt

toInt() function is the Standard function available in 200OK

**Description** : The toint function converts a string value to an integer.

**Syntax** : fx\_toint(value)

**Example** : fx\_toint('34') returns the integer value 34.

**Scenario** : In a data processing pipeline, there's a need to convert string-based numerical inputs into integer values for computational tasks. Utilizing a dedicated function, the system efficiently transforms string representations of numbers into integer values, ensuring compatibility with numerical operations.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/rOEO_IMJLULgctPdjQ_qnp8am7xY4wwWY6oh_wE-axndOFeYJBKN6-RwGE7xjRaL-ovqO7FuFJ1YF1kSbp27-qwx5r_n-6OZEZR_so8dYq-tOvQH-Yt99OlDO3XSfpsAH_cF_ZjfmHeOgDTORnuRqd8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/YToZaGEax2S_6EHW29dFergCFck8HSVVtQPe-Co3R3a7UXFgZlyJp81wiWELppu-_Je6PMO-sDkpaehSDQFyGI9O_mMNFDNBPjpKxZBYS6urUkL3K_QAD6pliCaI5h4Dh3pv2p9yWifqtFCPvaMKcSk" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/K9c2eU0fE6fv52Edz9tKiedxttm4XF5eRlIRBw9G37wo10aNQNNTYzSkRNac4-1NdjAw-nt1l5IPmB-glIZMUs6ttihiH2aqqpjh9ys5gXQWe0UJzW8sMfgV7q71h2xrk-X9UlIhIaNNp07uBLwsa60" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/YzpDXznuSie0xpSjD402RczuSZzWgzUXixjvz9RlBCt0ydxARxwHRCXTMvREwaadCuFBz6-0w61hr7IxE4HdHOpJ0RMQXFfhq1GJnuQ36LOM3jBN3b6x2XwUniJcvWX9JwyzFjzXQ2uP0DQ7qzxX0ns" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/1LES84rn08XVx9qMQE0qxWMol3zMwWb1fBzgiXebLaJawBaIyQlkXd53BX88h--d0sqC-IGDhpqUi5-FC5BCS6l6d7mM1sFyFLXHJZhDIyT8KGup4SBmKojSk5bx_c5sllcjGlG6W4K_iNpCCKcKuSk" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/S4eej8LNq2irOQuTczFTYp1RJjEol6Mbhn4XvJO406EtTLXyDHtklCCxBHPm5xzaao8_IrjghMkrbvsYafPEDBG0bfHM3U4wo_YzdSV_irRt2y2Z7XorYqSRIgE7kshJFy_FPX3c4hvF9Op9oGRSyk0" alt=""><figcaption></figcaption></figure>
