Difference between revisions of "User:Quonk"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 33: Line 33:
 
{{#ifexpr:  0.010 < 0.01  | 3 | 2 }}<br>
 
{{#ifexpr:  0.010 < 0.01  | 3 | 2 }}<br>
  
 +
{{Formatnum|7.1234|  {{#ifexpr:  0.001 < 0.01  | 3 | 2 }}  }}&nbsp;{{Dict|t}} <br>
 +
{{Formatnum|7.1234|  {{#ifexpr:  0.009 < 0.01  | 3 | 2 }}  }}&nbsp;{{Dict|t}} <br>
 
{{Formatnum|7.1234|  {{#ifexpr:  0.010 < 0.01  | 3 | 2 }}  }}&nbsp;{{Dict|t}} <br>
 
{{Formatnum|7.1234|  {{#ifexpr:  0.010 < 0.01  | 3 | 2 }}  }}&nbsp;{{Dict|t}} <br>

Revision as of 11:03, 7 October 2022

Number formatting experiments:

{{Infobox/Line|Mass|0.00 t |


mass=7.1234 0.00 t

7 t
7.1 t
7.12 t
7.123 t
7.1234 t
7.12340 t



8 t
8.2 t
8.23 t
8.235 t
8.2345 t
8.23450 t


tests with ifexpr:
very small number
very small number
normal number

2

7.123 t
7.123 t
7.12 t