I'm having error or not expected result when I do have, with the following expression.
I have a String with '10,50' which is equivalent to '10.50'. But whatever writing with comma or point, this ends with the same error.
- int('10,50') -> 1050
- float('10,50')-> 1050
- Sub( ofloat, ofint) -> fails
- int('10.50') -> error "InvalidTemplate. Unable to process template language expressions in action 'Integer_part' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
- float('10.50'): ActionConditionFailed. The execution of template action 'float' is skipped: the 'runAfter' condition for action 'Integer_part' is not satisfied. Expected status values 'Succeeded' and actual value 'Failed'.
In conclusion, I suppose '10.50' is better than '10,50' to write a decimal number, howerver it fails also miserably. Of course I added a compose action to replace ',' by '.' but it didn't fix neither.
So, would it ring you any idea that I could test ? Thank you in advance for your reading.
At the end of the day I was trying to addToTime with decimal number of year, this is the reason I have to split int and frac part.