Int

How to Use the Power Fx Int  Function in Power Apps

Syntax

The syntax for the Power Fx Int function is as follows:


Int(Number)


Where `Number` is the number that you want to round down to the nearest integer.

Examples

Let’s take a look at some examples to understand how the Power Fx Int function works:

Example 1

Suppose you have a number `3.7`, and you want to round it down to the nearest integer. You can use the Power Fx Int function to do this as follows:


Int(3.7)


The result of this function will be `3`.

Example 2

Suppose you have a column `Price` in your table, which contains decimal values. You want to create a new column `Price_Rounded` that will contain the rounded down values of the `Price` column. You can use the Power Fx Int function in the following way:


AddColumns(Table1, "Price_Rounded", Int(Price))


This will create a new column `Price_Rounded` in the `Table1` table, which will contain the rounded down values of the `Price` column.

Tips

Here are some tips to help you use the Power Fx Int function effectively in Power Apps:

– The Power Fx Int function always rounds down to the nearest integer. If you want to round up to the nearest integer instead, you can use the `Ceiling` function.

– If you want to round to a specific number of decimal places instead of rounding to the nearest integer, you can use the `Round` function.

– The Power Fx Int function can be used with different data types, such as integers, decimals, and currency.

The Power Fx Int function is a useful function in Power Apps when you need to work with whole numbers only. In this article, we discussed the syntax and examples of using the Power Fx Int function. We also provided some tips to help you use this function effectively. Hopefully, this article has helped you understand how to use the Power Fx Int function in Power Apps.

Power Apps Training Courses by G Com Solutions (0800 998 9248)