web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Why cant I convert thi...
Power Automate
Answered

Why cant I convert this float to int?

(0) ShareShare
ReportReport
Posted on by 255

ChannelDevMike_0-1657648135852.png

Compose 2 = 

div(div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(body('Parse_JSON')?['birth_date'])),864000000000),365.25)
 
Compose 3 = 
int(outputs('Compose_2'))
Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @ChannelDevMike 

    If you want to round up or down, see this post.

    If you don't need to round, see my example below:

    image.png

     

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @ChannelDevMike ,

    in the Compose 3 action please use this expression:

    int(string(outputs(‘Compose_2’)))

     

    BR,

    Marco

  • ChannelDevMike Profile Picture
    255 on at

    Getting same error on both responses

    ChannelDevMike_0-1657651571316.png

     

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @MarconettiMarco 

    Please post a screen shot that shows your expression.

     

  • ChannelDevMike Profile Picture
    255 on at
    ChannelDevMike_1-1657652111161.png

     


     

  • ChannelDevMike Profile Picture
    255 on at

    Oops looks like I put that in too fast and used a , not .. Stupid mistake let me run again  

  • ChannelDevMike Profile Picture
    255 on at

    @ScottShearer Thanks, it worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard