I have been working on a project using Flowcode and encountered an issue related to displaying decimal numbers. I tried to divide the number 5 by 2 to get the result 2.5, but the result always came out as 2 across all variable types I used (such as INT, UINT, LONG, ULONG, and FLOAT). When using the BOOL variable type, the result was 0, which is expected given the nature of BOOL variables.
However, my main issue is with the other variables, as I was unable to get the decimal point in the result, even when using the FLOAT variable type. The result was always 2 with no decimal part, despite expecting to see the number 2.5.
I have not yet used the STRING variable type, but I have tried all other types and was unable to obtain the desired result with a decimal point.
I have included a screenshot of my Flowcode program and the Flowcode file that contains an LCD screen and the code which performs the division of 5 by 2 to verify that I was unable to output the result with a decimal point.
I would like to understand why the decimal point is not appearing in the results, even though I am using the appropriate variable types. Is there something I might have overlooked?
Thank you in advance for your assistance.
