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

Notifications

Announcements

Community site session details

Community site session details

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

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,270 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,270 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard