Considering that the goal is to round to the nearest integer ("whole number"), this would do the work
@{if(greater(sub(float(myNumber), int(formatNumber(float(myNumber), 'F0'))), 0.5), add(int(formatNumber(float(myNumber), 'F0')), 1), int(formatNumber(float(myNumber), 'F0')))}
or
@{if(greaterOrEquals(sub(float(myNumber), int(formatNumber(float(myNumber), 'F0'))), 0.5), add(int(formatNumber(float(myNumber), 'F0')), 1), int(formatNumber(float(myNumber), 'F0')))}
Let's see a few examples:
Example 1:
Using two actions: Compose 3 and Compose 4.
In Compose 3, one uses as input the number 3.480987.
In Compose 4, one uses as input the expression
@{if(greater(sub(float(outputs('Compose_3')), int(formatNumber(float(outputs('Compose_3')), 'F0'))), 0.5), add(int(formatNumber(float(outputs('Compose_3')), 'F0')), 1), int(formatNumber(float(outputs('Compose_3')), 'F0')))}

This gives the following output:

Example 2
Using two actions: Initialize variable and Compose 5.
In Initialize variable one uses a float 3.7685 with the name e myNumber.
In Compose 5, uses as input the expression
@{if(greater(sub(float(variables('myNumber')), int(formatNumber(float(variables('myNumber')), 'F0'))), 0.5), add(int(formatNumber(float(variables('myNumber')), 'F0')), 1), int(formatNumber(float(variables('myNumber')), 'F0')))}

This gives the following output

---
Example 3
Now let us test the second case, with greaterOrEquals.
For that, one will use two actions: Compose and Compose 2

This is the output

---
Notes:
• In Power Automate, expressions need to be enclosed within the @{} syntax when added in the "Inputs" field of actions.
• Relevant read: Use expressions in conditions to check multiple values.
• If all one wants it to round up a number, one can do the following:
@{add(int(formatNumber(Value,'F0')),1)}