TurboCompound
Resource contributor
- Messages
- 190
Hi all, I'm trying to write a three digit N1 string that shows one decimal place while the N1 is less than 100%, and 3 digits without a decimal at 100% or greater. Basically, I would like only 3 digits to show at all values by only allowing the decimal value to show below 100%. (This is how it works on the actual aircraft, according to the FCOM and several cockpit videos I've seen)
This is what I have in the <string> section of the element:
The gauge works fine at 100% and above, showing three significant figures, but the rest of the logic fails. It's probably something obvious that I'm missing, but I can't place my finger on it.
Thanks
This is what I have in the <string> section of the element:
Code:
<String>%((A:Turb eng1 N1, percent) 100 >)%{if}%((A:Turb eng1 N1, percent))%!03d%{else}%03.1f%</String>
The gauge works fine at 100% and above, showing three significant figures, but the rest of the logic fails. It's probably something obvious that I'm missing, but I can't place my finger on it.
Thanks



, still had cobwebs after waking