This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
I have encounter some weird result from using 'round' function.
I have a calculation which will result a set of number with 2 decimal point. I want to remove the decimal point and round up the value. If I round up to one decimal point, the result will come out okay. but if I round up to 0 decimal point, it will remove the first number in the set. see below:
This produces the result you are seeking without issue as far as I can see.
I do note in the pic you sent through, the positioning of the result changes between the two different examples. This looks to me like a fixed amount of space, margin or alignment has been set. The browser is trying to make it fit, it can almost do it for the first example (but note how the top of numbers is being cut off). With the second example the first number and the comma are missing.
This make me think your logic is fine, but something about your alignment and/or sizing of the control is not quite right.
Since the code works for me and not you, I can only suggest that you need to ensure your EPC's are not up to date.
For me I am currently using EPC141050, which requires EPC141031.
To check what release you have in your IDE, click on the right arrow next to the question mark in the top right hand corner and select about. In the result dialog under the installation details tab you will see what EPCs have been applied.