cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michal
Kudo Collector
Kudo Collector

how to get integer value of the float number in PowerApps

Here is a very simple way to get the integer part of the float number.

Value-Mod(Value,1)

i.e. Value=1.92 in return you get 1

 

Hope it helps 

/Mike

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Michal 

Round(Value,0) also works, RoundUp(Value,0) and RoundDown(Value,0) also.

View solution in original post

4 REPLIES 4
Drrickryp
Super User
Super User

@Michal 

Round(Value,0) also works, RoundUp(Value,0) and RoundDown(Value,0) also.

Michal
Kudo Collector
Kudo Collector

Thank you @Drrickryp 
When I look at my post I might not express myself clear enough.  
Here it is. I would like to get the integer portion of the float value without rounding up or down. 
Unfortunately, round(value,0) will do rounding mathematically, which in my case was not expected. 

See below (*in the 4th example should be RoundUp). The last example shows what I wanted to achieve. I hope now it is more understandable. 

 

intiger1.pngintiger2.png

Piotr-Pruszkow
New Member

Great! Thanks

rodrigogpereira
Regular Visitor

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,579)