{"id":8820,"date":"2026-11-20T13:23:12","date_gmt":"2026-11-20T10:23:12","guid":{"rendered":"https:\/\/help.bothelp.io\/formula-raschety-i-chisla\/"},"modified":"2026-11-20T13:54:12","modified_gmt":"2026-11-20T10:54:12","slug":"formula-raschety-i-chisla","status":"publish","type":"post","link":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/","title":{"rendered":"Formula: Calculations and Numbers"},"content":{"rendered":"<p>The functions in this group help you calculate right inside a flow \u2014 discounts, order totals, quiz points \u2014 and show the result to the subscriber in a neat format.<\/p>\r\n<p><strong>Where it helps:<\/strong><\/p>\r\n<ul>\r\n<li>calculate a discount and the order total;<\/li>\r\n<li>round the result and show a price with thousands separators;<\/li>\r\n<li>convert a subscriber&#8217;s answer from text to a number to compare and calculate.<\/li>\r\n<\/ul>\r\n<p>Arithmetic operations are supported: <code>+<\/code>, <code>-<\/code>, <code>*<\/code>, <code>\/<\/code>.<\/p>\r\n<h2>Functions<\/h2>\r\n\n<table id=\"tablepress-5\" class=\"tablepress tablepress-id-5\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\"><strong>Function<\/strong><\/th><th class=\"column-2\"><strong>Description<\/strong><\/th><th class=\"column-3\"><strong>Example<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">round(x)<\/td><td class=\"column-2\">Rounds a number to the nearest integer (0.5 rounds up).<br \/>\nWhen using a numeric field, the function round round({%numeric_field%}, 3) rounds only to 3 decimal places (thousandths). For example, the number 2.123456789 becomes 2.123 after rounding.<\/td><td class=\"column-3\">round(2.5) \u2192 3<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">int(x)<\/td><td class=\"column-2\">Converts a value to an integer.<\/td><td class=\"column-3\">int(\"42\") \u2192 42<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">float(x)<\/td><td class=\"column-2\">Converts a string to a floating-point number.<\/td><td class=\"column-3\">float(\"12.34\") \u2192 12.34<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">str(x)<\/td><td class=\"column-2\">Converts a value to a text string.<\/td><td class=\"column-3\">str(100) \u2192 \"100\"<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">abs(x)<\/td><td class=\"column-2\">Returns the absolute value of a number (without the minus sign).<\/td><td class=\"column-3\">abs(-5) \u2192 5<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">min(a, b, \u2026)<\/td><td class=\"column-2\">Returns the smallest of the numbers.<\/td><td class=\"column-3\">min(3, 7, 1) \u2192 1<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">max(a, b, \u2026)<\/td><td class=\"column-2\">Returns the largest of the numbers.<\/td><td class=\"column-3\">max(3, 7, 1) \u2192 7<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">pow(x, y)<\/td><td class=\"column-2\">Raises x to the power of y.<\/td><td class=\"column-3\">pow(2, 3) \u2192 8<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">floor(x)<\/td><td class=\"column-2\">Rounds a number down to an integer.<\/td><td class=\"column-3\">floor(4.7) \u2192 4<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\">ceil(x)<\/td><td class=\"column-2\">Rounds a number up to an integer.<\/td><td class=\"column-3\">ceil(4.2) \u2192 5<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\">sqrt(x)<\/td><td class=\"column-2\">Returns the square root. If the result is a whole number, returns an integer.<\/td><td class=\"column-3\">sqrt(16) \u2192 4<\/td>\n<\/tr>\n<tr class=\"row-13\">\n\t<td class=\"column-1\">fac(n)<\/td><td class=\"column-2\">Returns the factorial of a number. The maximum argument is 170.<\/td><td class=\"column-3\">fac(5) \u2192 120<\/td>\n<\/tr>\n<tr class=\"row-14\">\n\t<td class=\"column-1\">log(x, base)<\/td><td class=\"column-2\">Returns the logarithm of x to the given base. If the base isn't set, returns the natural logarithm.<\/td><td class=\"column-3\">log(100, 10) \u2192 2.0<\/td>\n<\/tr>\n<tr class=\"row-15\">\n\t<td class=\"column-1\">exp(x)<\/td><td class=\"column-2\">Returns e raised to the power of x.<\/td><td class=\"column-3\">exp(1) \u2192 2.718281828459045<\/td>\n<\/tr>\n<tr class=\"row-16\">\n\t<td class=\"column-1\">sin(x), cos(x), tan(x)<\/td><td class=\"column-2\">Trigonometric functions. The angle is set in radians.<\/td><td class=\"column-3\">sin(0) \u2192 0.0<\/td>\n<\/tr>\n<tr class=\"row-17\">\n\t<td class=\"column-1\">format_number(number, decimals, thousands_sep, decimal_sep)<\/td><td class=\"column-2\">Formats a number: rounds it to the given number of decimal places and separates thousands. By default, the thousands separator is a space and the decimal separator is a comma. Handy for prices.<\/td><td class=\"column-3\">format_number(1234567.891, 2) \u2192 \"1 234 567,89\"<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-5 from cache -->\r\n<h2>Example: calculations with variables<\/h2>\r\n<p>Variables must be created <strong>in advance<\/strong>. Add a &#8220;Formula&#8221; step and write the code:<\/p>\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&quot;&quot;&quot;Calculate variable values&quot;&quot;&quot;\r\nclient.A = 2 - 4      # Data type &quot;Number&quot;, negative\r\nclient.B = 1.275 + 5  # Data type &quot;Number&quot;, decimal\r\nclient.C = 5 * 10 \/ 2 # Data type &quot;Number&quot;, integer\r\nclient.D = &quot;10&quot;       # Data type &quot;String&quot;\r\nclient.E = &quot;10.5&quot;     # Data type &quot;String&quot;\r\n\r\n&quot;&quot;&quot;Working with local variables&quot;&quot;&quot;\r\nlocal1 = 2 # Assign a local variable\r\nlocal2 = 3\r\n# Add the local variables into a user variable\r\nclient.F = local1 + local2\r\n\r\n&quot;&quot;&quot;Apply mathematical functions&quot;&quot;&quot;\r\nclient.discount = round(client.B)     # Round to the nearest integer\r\nclient.sum_orders = int(client.D)     # Convert a string to a number\r\nclient.life_number = float(client.E)  # Convert a string to a decimal number\r\nclient.forecast = str(client.C)       # Convert a number to a string<\/pre><\/div>\r\n\r\n\r\n<p><strong>In the &#8220;Message&#8221; step, show the text to the subscriber<\/strong><\/p>\r\n<p>\u2014 Calculate variable values<br \/>A = {%A%}<br \/>B = {%B%}<br \/>C = {%C%}<br \/>D = {%D%}<br \/>E = {%E%}<br \/>\u2014 Working with local variables<br \/>F = {%F%}<br \/>\u2014 Apply mathematical functions<br \/>discount = {%discount%}<br \/>sum_orders = {%sum_orders%}<br \/>life_number = {%life_number%}<br \/>forecast = {%forecast%}<\/p>\r\n<h2>Case: the flow calculates from the subscriber&#8217;s number<\/h2>\r\n<p>The subscriber sends their lucky number, the flow calculates and sends back the result.<\/p>\r\n<ol>\r\n<li>In the flow builder, add a <strong>&#8220;Message&#8221;<\/strong> step and select the <strong>&#8220;Question&#8221;<\/strong> block inside it. Enter your question.<\/li>\r\n<li>Save the answer to a field. You can create a field in <strong>&#8220;Settings&#8221;<\/strong> \u2014 <strong>&#8220;Custom fields&#8221;<\/strong>. For example, create the fields <strong>&#8220;Number&#8221;<\/strong> and <strong>&#8220;Result&#8221;<\/strong>, both of the number type.<\/li>\r\n<li>Add a <strong>&#8220;Formula&#8221;<\/strong> step and write <strong>client.Result = client.Number * 2<\/strong>.<\/li>\r\n<li>Add a <strong>&#8220;Message&#8221;<\/strong> step and insert the macro of the <strong>&#8220;Result&#8221;<\/strong> field.<\/li>\r\n<\/ol>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7556\" src=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png\" alt=\"\" width=\"1024\" height=\"280\" srcset=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png 1024w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-300x82.png 300w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-768x210.png 768w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1536x419.png 1536w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-2048x559.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7555\" src=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.32.53-1024x271.png\" alt=\"\" width=\"1024\" height=\"271\" srcset=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.32.53-1024x271.png 1024w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.32.53-300x79.png 300w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.32.53-768x203.png 768w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.32.53.png 1330w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n<p>You can build any calculation the same way.<\/p>\r\n<h2>Example: show an amount nicely<\/h2>\r\n<p>Calculate the order total and show it with thousands separators.<\/p>\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">client.total = client.price * client.qty\r\nclient.total_text = format_number(client.total, 2) + &quot; $&quot;<\/pre><\/div>\r\n\r\n\r\n<p>If <code>price = 4115<\/code> and <code>qty = 3<\/code>, <code>total_text<\/code> gets <code>12 345,00 $<\/code>. To use a dot and a comma like in English, pass the separators: <code>format_number(client.total, 2, \",\", \".\")<\/code> gives <code>12,345.00<\/code>.<\/p>\r\n<p>Random numbers and distances between coordinates are described in <a href=\"https:\/\/help.bothelp.io\/en\/formula-games-and-giveaways\/\">Formula: Games and Giveaways<\/a>.<\/p>\r\n<hr \/>\r\n<p>If you did not find the answer to your question, feel free to contact us in the chat inside your dashboard, message us on Telegram at <a href=\"https:\/\/t.me\/BotHelpSupportBot\" target=\"_blank\" rel=\"noopener\"><strong>@BotHelpSupportBot<\/strong><\/a>, or email us at <a href=\"mailto:hello@bothelp.io\" target=\"_blank\" rel=\"noopener\"><strong>hello@bothelp.io<\/strong><\/a>.<\/p>\r\n<p>Enjoy the full functionality of the BotHelp platform for creating broadcasts, automated funnels, and chatbots \u2014 free for 14 days.<\/p>\r\n<p><a href=\"https:\/\/bothelp.io\/?utm_source=bz&#038;utm_medium=footer&#038;utm_campaign=16881\"><strong>Get 14 Days Free<\/strong><\/a><\/p>\r\n\t\t\t<div id=\"daexthefu-container\"\r\n\t\t\t\tclass=\"daexthefu-container daexthefu-layout-side-by-side daexthefu-alignment-left\"\r\n\t\t\t\tdata-post-id=\"8820\">\r\n\r\n\t\t\t\t<div class=\"daexthefu-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefu-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefu-title\">\u0411\u044b\u043b\u0430 \u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefu-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefu-buttons\">\r\n\t\t\t\t\t\t\t\n\t\t\t<button type=\"button\" class=\"daexthefu-yes daexthefu-button daexthefu-button-type-icon\" data-value=\"1\" aria-label=\"Yes\">\n\t\t\t\t\n                <svg>\n                    <defs>\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\n                    <\/defs>\n                    <g id=\"thumb_up\">\n                        <path class=\"thumb-up-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\n                        <g>\n                            <rect class=\"thumb-up-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\n                        <\/g>\n                    <\/g>\n                <\/svg>\t\t\t<\/button>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t<button type=\"button\" class=\"daexthefu-no daexthefu-button daexthefu-button-type-icon\" data-value=\"0\" aria-label=\"No\">\n\t\t\t\t\n                <svg>\n                    <defs>\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\n                    <\/defs>\n                    <g id=\"thumb_down\">\n                        <path class=\"thumb-down-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\n                        <g>\n                            <rect class=\"thumb-down-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\n                        <\/g>\n                    <\/g>\n                <\/svg>\t\t\t<\/button>\n\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-comment\">\r\n\t\t\t\t\t<div class=\"daexthefu-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefu-comment-label\" class=\"daexthefu-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefu-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefu-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefu-comment-textarea\" class=\"daexthefu-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefu-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-submit daexthefu-button\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-cancel daexthefu-button\">\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-successful-submission-text\">\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_helpful_status":1,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-8820","post","type-post","status-publish","format-standard","hentry","category-shagi-v-botah"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Formula: Calculations and Numbers<\/title>\n<meta name=\"description\" content=\"Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formula: Calculations and Numbers\" \/>\n<meta property=\"og:description\" content=\"Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bothelpru\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-20T10:23:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-20T10:54:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-scaled.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"699\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"e.bezmaternykh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"e.bezmaternykh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/\"},\"author\":{\"name\":\"e.bezmaternykh\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\"},\"headline\":\"Formula: Calculations and Numbers\",\"datePublished\":\"2026-11-20T10:23:12+00:00\",\"dateModified\":\"2026-11-20T10:54:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/\"},\"wordCount\":253,\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/help.bothelp.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png\",\"articleSection\":[\"Steps in bots\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/\",\"name\":\"\u0424\u043e\u0440\u043c\u0443\u043b\u0430: \u0440\u0430\u0441\u0447\u0451\u0442\u044b \u0438 \u0447\u0438\u0441\u043b\u0430 - \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/help.bothelp.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png\",\"datePublished\":\"2026-11-20T10:23:12+00:00\",\"dateModified\":\"2026-11-20T10:54:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png\",\"contentUrl\":\"https:\\\/\\\/help.bothelp.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/formula-calculations-and-numbers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals\",\"item\":\"https:\\\/\\\/help.bothelp.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formula: Calculations and Numbers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/\",\"name\":\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\",\"description\":\"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3d6703d74bf6281d752af998b5a7a799\",\"name\":\"e.bezmaternykh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g\",\"caption\":\"e.bezmaternykh\"},\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/author\\\/e-bezmaternykh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formula: Calculations and Numbers","description":"Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.","og_locale":"en_US","og_type":"article","og_title":"Formula: Calculations and Numbers","og_description":"Formula step functions for calculations: rounding, discounts, order totals and numbers with thousands separators.","og_url":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/","og_site_name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","article_publisher":"https:\/\/www.facebook.com\/bothelpru","article_published_time":"2026-11-20T10:23:12+00:00","article_modified_time":"2026-11-20T10:54:12+00:00","og_image":[{"width":2560,"height":699,"url":"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-scaled.png","type":"image\/png"}],"author":"e.bezmaternykh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"e.bezmaternykh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#article","isPartOf":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/"},"author":{"name":"e.bezmaternykh","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799"},"headline":"Formula: Calculations and Numbers","datePublished":"2026-11-20T10:23:12+00:00","dateModified":"2026-11-20T10:54:12+00:00","mainEntityOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/"},"wordCount":253,"image":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#primaryimage"},"thumbnailUrl":"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png","articleSection":["Steps in bots"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/","url":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/","name":"\u0424\u043e\u0440\u043c\u0443\u043b\u0430: \u0440\u0430\u0441\u0447\u0451\u0442\u044b \u0438 \u0447\u0438\u0441\u043b\u0430 - \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","isPartOf":{"@id":"https:\/\/help.bothelp.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#primaryimage"},"image":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#primaryimage"},"thumbnailUrl":"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png","datePublished":"2026-11-20T10:23:12+00:00","dateModified":"2026-11-20T10:54:12+00:00","author":{"@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799"},"breadcrumb":{"@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#primaryimage","url":"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png","contentUrl":"https:\/\/help.bothelp.io\/wp-content\/uploads\/2026\/01\/snimok-ekrana-2026-03-17-v-12.34.21-1024x280.png"},{"@type":"BreadcrumbList","@id":"https:\/\/help.bothelp.io\/en\/formula-calculations-and-numbers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals","item":"https:\/\/help.bothelp.io\/"},{"@type":"ListItem","position":2,"name":"Formula: Calculations and Numbers"}]},{"@type":"WebSite","@id":"https:\/\/help.bothelp.io\/en\/#website","url":"https:\/\/help.bothelp.io\/en\/","name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","description":"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.bothelp.io\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3d6703d74bf6281d752af998b5a7a799","name":"e.bezmaternykh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5cb3cb3e24dd71cdab99be19c756f97e910900e6371c5573a7604f4cb2a523a9?s=96&d=mm&r=g","caption":"e.bezmaternykh"},"url":"https:\/\/help.bothelp.io\/en\/author\/e-bezmaternykh\/"}]}},"_links":{"self":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/comments?post=8820"}],"version-history":[{"count":3,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8820\/revisions"}],"predecessor-version":[{"id":9163,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/8820\/revisions\/9163"}],"wp:attachment":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/media?parent=8820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/categories?post=8820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/tags?post=8820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}