Truncate Number Action In Desktop Flow Using Microsoft Power Automate

Microsoft Power Automate, is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. For more details click here.

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate all repetitive desktop processes. For more details click here.

Truncate number is used to get the integral or fractional digits of a numeric value, or round up the value to a specified number of decimal places.

Reading this article, you can learn how to use Truncate Number action in Desktop flow using Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. Power Automate Desktop - Download the Power Automate installer

Now we can discuss step by step App development.

Step 1

Open Microsoft Power Automate -> New Flow

Next, give the Flow name as PADTruncate, and Create button,

After that, we are able to see the Desktop flow,

Step 2

For Testing Truncate Number action,

First, getting the Input Number, add the Input Variable

Set the Variable Name property as Num1, Data Type as Number and External Name as Num1 and click Save,

Next, add the Truncate Number action,

Getting Integer part, Set the Number to Truncate Parameter as Num1 Variable, Operation parameter as Get integer part and Variables produced parameter asTruncatedValue1 and click Save,

Getting Decimal part, similarly, add one more Truncate Number action, Set the Number to Truncate Parameter as Num1 Variable, Operation parameter as Get decimal part and Variables produced parameter as TruncatedValue2 and click Save,

For Displaying Result, Add Display Message action,

Set the Message box Title property as Truncated Values, Message to display property as Integer Part Value is : %TruncatedValue%

Decimal Part Value is : %TruncatedValue2%

Click Save Button

Now, Save the PADTruncate Desktop Flow,

Step 3

Now we can run your PADTruncateDesktop Flow in Microsoft Power Automate, and Enter the Input Value,

The output of the PADTruncate is,

Summary

Now you have successfully tested Truncate Number Action – integer part and decimal part in Desktop flow - PADTruncatein Microsoft Power Automate.


Similar Articles