cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

initialization of a variable float

Does anyone find the mistake in my express?

 

sub(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0'],div(mul(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0'],triggerBody()?['Rabatt']),100))
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: initialization of a variable float

Hi @Anonymous,

 

When working with math function, you need to make sure the parameter are all numbers, consider use the Int() or Float() function to convert the values, change the formula as below:

sub(
    float(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0']),
    div(mul(
            float(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0']),
            float( triggerBody()?['Rabatt'])
            ),
        100)
)

Function reference.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: initialization of a variable float

Hi @Anonymous,

 

When working with math function, you need to make sure the parameter are all numbers, consider use the Int() or Float() function to convert the values, change the formula as below:

sub(
    float(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0']),
    div(mul(
            float(triggerBody()?['Tarif_x003a_Preis_x0028_netto_x0']),
            float( triggerBody()?['Rabatt'])
            ),
        100)
)

Function reference.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,070)