New Perform Math Operations Features: Advanced Formatting and Rounding

We are excited to announce a major update to the Perform Math Operations action! We have added native formatting and Culture settings directly into the action, eliminating the need for complex workarounds or additional steps just to make your numbers look presentable.

Whether you are generating invoices, calculating test scores, or sending automated reports, your numbers can now be perfectly formatted for human eyes in a single step.

Here are the answers to some of the most common questions regarding these new capabilities:

Q1: How do I turn a decimal result into a percentage? A: You no longer need to build a separate action to multiply by 100! In the Perform Math Operations action, simply enter P into the Format field. The system will automatically calculate the percentage and append the percent symbol for you. For example, 0.15 instantly becomes 15.00%. If you want a clean whole number without the decimals, just use P0 to output 15%.

Q2: How do I format a raw number as money? A: Type C (for Currency) into the Format field, and select your specific region from the Culture dropdown. The action will automatically format a raw number like 150 into $150.00. It applies the precise currency symbol, comma placement, and decimal formatting based on the regional culture you selected (e.g., English (United States) vs French (France)).

Q3: How do I add commas to large numbers so they are easier to read? A: Big numbers without commas are incredibly hard to read in automated reports. If your math action outputs a raw number like 3540200, simply type N0 into the Format field. Zenphi will automatically add the thousands separators so your email or Slack message clearly reads 3,540,200.

Q4: How do I round my math result to exactly two decimal places? A: Use the Fixed-point format. Simply type F2 into the Format field. If your raw calculation results in a messy string like 12.345678, the system will automatically round it and output a clean 12.35.

Q5: Bonus for the IT crowd: Can I convert numbers to Hexadecimal? A: Yes! If you are building IT workflows, just type X into the format field. It will instantly convert an integer like 254 into its hexadecimal equivalent (FE).

Q6: Can I use the formatted number in a subsequent math action? A: No. Formatting fundamentally turns your number into a text string by adding characters like currency signs ($) and commas. If you need to perform additional calculations later in your flow, you must use the raw Result output token. You should only use the Formatted Number output token at the very end of your flow when pasting the data into an email, document, or Slack message for a human to read.

Try out the new formatting features in your active workflows today, and let us know how much time it saves you!