Skip to main content

Notifications

Community site session details

Community site session details

Session Id : UAliKE/myNdWOuode2ZWlN
Power Apps - Building Power Apps
Answered

Format decimal numbers

Like (0) ShareShare
ReportReport
Posted on 30 Apr 2016 13:09:27 by 51

How do i format decimal numbers in PowerApps? I saw how dates can be formatted...but nothing about formatting decimal numbers. Thanks.

  • merekson Profile Picture
    2 on 28 Apr 2022 at 16:12:35
    Re: Format decimal numbers

    I am trying to multiply two numbers together in a text box and I need it to give me decimal places. But, it is automatically rounding and getting rid of the decimals for some reason. 

     

    Here is an example of what I am trying to do: 

    .32 * 1912.50 

    I am expecting 611.84

    But I am getting 612

     

    I have tried using the text function to format and give me the decimal places. However, when I do that I get 612.00 as the result. 

    Can someone help me out? 

  • HEATFreight Profile Picture
    1,020 on 14 Nov 2021 at 20:15:05
    Re: Format decimal numbers

    @mr-dang you just blew my mind!

  • Community Power Platform Member Profile Picture
    on 28 Jul 2021 at 13:33:47
    Re: Format decimal numbers

    Thank you for the reply, It worked for me when I applied value function of the datacard and used text formatting.

  • Community Power Platform Member Profile Picture
    on 17 May 2021 at 21:08:14
    Re: Format decimal numbers

    I was implementing this within a Vertical Gallery and the data source was an Excel file on OneDrive.

    In this case, I had to format the field like this

    Text(Value(ThisItem.Name),"[$-en-US]$#,##0")

     

  • RyanXExner Profile Picture
    96 on 21 Jul 2020 at 17:16:09
    Re: Format decimal numbers

    Thank you @mr-dang, still helped me in 2020!

  • Hahanos Profile Picture
    4 on 09 Mar 2019 at 15:50:54
    Re: Format decimal numbers

    @Anonymous wrote:

    First of all Thanks you verym much for Looking at my issue and soirry for the very late reply.

     

    Following your idea I tried this:

     

    Text(Value(ThisItem.Geplante_x0020_Dauer); "[$-de-DE]#,0")

    And got this in return:

     

    Geplante Dauer

    600000000000000,0

     

    So yes, the "." after the actual number is gone, but the comma shows at the very end after all those 0s.

    Right now I guess I will ignore the 0s and shorten the field in lenght so it looks a tad better.

     

    If you think of anything else I'd love to give it a try.

    Cheers

     


    Try using Substitute function in order to convert "." to "," and vice versa.

     

     

     

  • Community Power Platform Member Profile Picture
    on 28 Oct 2018 at 10:06:30
    Re: Format decimal numbers

    First of all Thanks you verym much for Looking at my issue and soirry for the very late reply.

     

    Following your idea I tried this:

     

    Text(Value(ThisItem.Geplante_x0020_Dauer); "[$-de-DE]#,0")

    And got this in return:

     

    Geplante Dauer

    600000000000000,0

     

    So yes, the "." after the actual number is gone, but the comma shows at the very end after all those 0s.

    Right now I guess I will ignore the 0s and shorten the field in lenght so it looks a tad better.

     

    If you think of anything else I'd love to give it a try.

    Cheers

     

  • Community Power Platform Member Profile Picture
    on 16 Oct 2018 at 06:44:26
    Re: Format decimal numbers
    . (period)Displays the decimal point in a number. Depends on the language of the custom format, see global apps for more details.

    You need to adjust the format in function of what you're using as decimal separator in German locale.

    If it is the comma, try "[$-de-DE]#,0" with a comma instead of a period.

  • Community Power Platform Member Profile Picture
    on 15 Oct 2018 at 17:01:06
    Re: Format decimal numbers

    Hi,

     

    I am currently also trying to get rid of my decimals, but seem to be stuck.

     

    I have a calculated value in minutes as a single line of text, based on two date/time entries.

     

    =GANZZAHL(([Geplanter Einsatztermin Ende]-[Geplanter Einsatztermin])*1440)

    The value in this example is 60 minutes, see first attachment, which looks as expected in the Sharepoint item.

     

    Now when I pull this single line of text into my Powerapp, I get the "hostile" decimals (second screenshot) 🙂

     

    I tried this:

     

    Text(ThisItem.Geplante_x0020_Dauer*1; "[$-de-DE]#.0")

    and

    Text(Value(ThisItem.Geplante_x0020_Dauer); "[$-de-DE]#.0")

    But end up only getting more dots in between all the 0s, but no matter what I try the 0 remain.

     

     

    With this code:

    Text(Value(ThisItem.Geplante_x0020_Dauer); "[$-de-DE]#")

    I get rid of the dot after the "60", but also the 0s remain 😞

     

    Any ideas?

    Thanks a lot in advance!

     

     

  • Community Power Platform Member Profile Picture
    on 14 May 2018 at 15:16:29
    Re: Format decimal numbers

    Interesting, thank you! So you can multiply by 1 any string that can be converted to a number? Neat.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard