Hi,
I want to display some info about a water pit in the HS Visu.
So far, I'm able to display the actual water height (16 bit EIS5) in a dynamic text box. Looks OK.
I've build a dynamic icon to show the raw status of the pit, in % (i.e. 0, 25, 50, 75, 100). I want this icon to be driven by an integer representing a %.
To do so, I divide the actual height by the max height and put the result in a 8 bit (0-100%/EIS6) but I still have a result with a number after the comma, i.e. 87,5
How can I get a pure integer, from 0 to 100 ? i.e. 87 (instead of 87,5)
Thank you for any hint
PS: Until now, I thought integers didn't have commas
I want to display some info about a water pit in the HS Visu.
So far, I'm able to display the actual water height (16 bit EIS5) in a dynamic text box. Looks OK.
I've build a dynamic icon to show the raw status of the pit, in % (i.e. 0, 25, 50, 75, 100). I want this icon to be driven by an integer representing a %.
To do so, I divide the actual height by the max height and put the result in a 8 bit (0-100%/EIS6) but I still have a result with a number after the comma, i.e. 87,5
How can I get a pure integer, from 0 to 100 ? i.e. 87 (instead of 87,5)
Thank you for any hint
PS: Until now, I thought integers didn't have commas

Kommentar