-1

I have a decimal and I want to convert it to an integer. How do I go about that?

asked

Ishaq Yousef Haj Hasan

3 answers

3

You can youse three mathematical functions in the expressions, based on your requirement…

**floor **– Rounds down to an integer (returns the largest integer which is less than or equal to the input).

**ceil **– Rounds up to an integer (returns the smallest integer which is greater than or equal to the input).

**round **– Rounds a number to a certain precision. Precision needs to be passed as an argument.

answered

Monu Michael Jose

0

look here : https://docs.mendix.com/refguide/mathematical-function-calls

You can use the function round()

answered

Yehoshoua Choukroun

0

you can use any of the function floor ceil and round, as they takes decimal and gives back integer, but the value changes as they have their own use case study what it does to the decimal you give an use it according to your requirement.

answered

Sairam Tanniru