Problem description:
- See screenshot, I have added a meter displaying a number with one decimal - in this case it's "1.6", marked with yellow arrow
- All numbers are coming from a webparser measure and in this case the number can be greater than 10, e.g. 12.3
- In this case it collides with the arrow meter left of the number...
- See below my meter code: MeasureIOB after parsing is actualy a number with 2 decimals, in this case it was 1.63
What I want:
1) In case MeasureIOB <10 -> no changes, display with 1 decimal is perfectly fine
2) In case MeasureIOB >=10 -> it should only display the first two digits and no decimal, then it will fit!
Example: e.g. MeasureIOB = 12.32 -> then, the meter should only display "12" thus no decimals like with [&MeasureIOB:0]
Any ideas how this can be done? How can I add such an IfCondition to the meter? Many thanks for your guidance!!
Code: Select all
[MeterIOB]
; Meter "Insulin on Board"
Meter=String
MeterStyle=StyleRightText
FontSize=8
MeasureName=MeasureIOB
X=136
Y=26
W=40
H=21
Text=[&MeasureIOB:1]
DynamicVariables=1