Hi I have a decimal value, want to separate that decimal value like whole number + decimal part e.g. 2.25 as 2 +0.25 . Is there any mathematic function in mendix that support this. Thanks for help !!

asked

Shubhransh Yadav

2 answers

2

Take a look at the floor function. You could create an integer variable floorValue set as floor($value). Then calculate the remainder as decimal $value – $floorValue.