Template:Len
From The Scuba Wiki
This template determines the number of digits before the decimal point excluding leading zeros in non-negative numbers with a maximum of 15. It's designed to be used in template development, its code should be substituted inline.
- Result -1: Value < 0, error. Non-negative numbers incl. 0 yield at least 0.
- Result 0: Value < 1 (10^0), negative exponents like -2 for 0.01 not supported.
- Result 1: Value < 10 (10^1), especially 1 up to 9.
- Result 2: Value < 100 (10^2), especially 10 up to 99.
- Result 3: Value < 1000 (10^3), especially 100 up to 999.
- Result 15: Value < 10^15
- Result 16: 10^15 <= value, see accuracy.
- Examples:
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3 (timestamp)
- Template:Evaldemo/3
- Template:Evaldemo/3
- Template:Evaldemo/3 (out of range)
- Template:Evaldemo/3 (out of range)