Template:E/doc
|
The {{e}} and {{10^}} templates are intended to facilitate and make uniform scientific notation numbers. The {{10^}} template works exactly as described below except that it does not generate a multiplication (“×”) symbol.
Contents |
Basic usage
To render {{#ifeq:Template||Template:FormattingError|3.14 × 10−12}}, instead of writing {{#ifeq:Template||Template:FormattingError|3.14 × 10<sup>−12</sup>}} you can write {{#ifeq:Template||Template:FormattingError|3.14{{e|-12}}}}:
{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:paq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|e}}{{xpd/w{{#if:|l}}|&p}}{{xpd/w{{#if:|l}}|{{{{{#switch:pbq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}
gives a{{#if:b
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:b|{{#ifeq:b|{{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}}|true|{{#ifeq:b|+{{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}}|true|{{#ifeq:b|({{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(b1)=(b)|Template:FormattingError|{{#ifexpr:b<0|−}}{{#ifexpr:abs(b1)>10*abs(b)|{{#expr:abs(b)}}|{{#expr:trunc(abs(b))}}.{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(b1)=(b)|Template:FormattingError|{{#ifexpr:b<0|−}}{{#ifexpr:abs(b1)>10*abs(b)|{{#expr:abs(b)}}|{{#expr:trunc(abs(b))}}.{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=b }} |text=b }} |e
{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|10^}}{{xpd/w{{#if:|l}}|&p}}{{xpd/w{{#if:|l}}|{{{{{#switch:pbq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}
gives 10{{#switch:{{{2}}}
|#default={{#switch:{{#if:b|{{#ifeq:b|{{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}}|true|{{#ifeq:b|+{{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}}|true|{{#ifeq:b|({{#if:{{#ifexpr:{{#expr:b}}}}|(b)|{{#expr:b}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(b1)=(b)|Template:FormattingError|{{#ifexpr:b<0|−}}{{#ifexpr:abs(b1)>10*abs(b)|{{#expr:abs(b)}}|{{#expr:trunc(abs(b))}}.{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(b1)=(b)|Template:FormattingError|{{#ifexpr:b<0|−}}{{#ifexpr:abs(b1)>10*abs(b)|{{#expr:abs(b)}}|{{#expr:trunc(abs(b))}}.{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(b1)-abs(b))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(b1)-trunc(abs(b1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=b }} |text=b
{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|{}}{{xpd/w{{#if:|l}}|10^}}{{xpd/w{{#if:|l}}|&p}}{{xpd/w{{#if:|l}}|{{{{{#switch:p-12q|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|{{{{{#switch:pq|p q=2|p
q=3|p*q=4|p#q=5|p:q=6|7}}}}}}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}{{xpd/w{{#if:|l}}|}}
gives 10{{#switch:{{{2}}}
|#default={{#switch:{{#if:-12|{{#ifeq:-12|{{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}}|true|{{#ifeq:-12|+{{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}}|true|{{#ifeq:-12|({{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(-121)=(-12)|Template:FormattingError|{{#ifexpr:-12<0|−}}{{#ifexpr:abs(-121)>10*abs(-12)|{{#expr:abs(-12)}}|{{#expr:trunc(abs(-12))}}.{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(-121)=(-12)|Template:FormattingError|{{#ifexpr:-12<0|−}}{{#ifexpr:abs(-121)>10*abs(-12)|{{#expr:abs(-12)}}|{{#expr:trunc(abs(-12))}}.{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=-12 }} |text=-12
Delimitation
The template uses the delimitation logic of the {{val}} template. That is, typing {{#ifeq:Template||Template:FormattingError|1.2{{e|12341}}}} will produce a delimited exponent ({{#ifeq:Template||Template:FormattingError|1.2{{#if:12341
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:12341|{{#ifeq:12341|{{#if:{{#ifexpr:{{#expr:12341}}}}|(12341)|{{#expr:12341}}}}|true|{{#ifeq:12341|+{{#if:{{#ifexpr:{{#expr:12341}}}}|(12341)|{{#expr:12341}}}}|true|{{#ifeq:12341|({{#if:{{#ifexpr:{{#expr:12341}}}}|(12341)|{{#expr:12341}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(123411)=(12341)|Template:FormattingError|{{#ifexpr:12341<0|−}}{{#ifexpr:abs(123411)>10*abs(12341)|{{#expr:abs(12,341)}}|{{#expr:trunc(abs(12,341))}}.{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(123411)=(12341)|Template:FormattingError|{{#ifexpr:12341<0|−}}{{#ifexpr:abs(123411)>10*abs(12341)|{{#expr:abs(12,341)}}|{{#expr:trunc(abs(12,341))}}.{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(123411)-abs(12341))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(123411)-trunc(abs(123411))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=12341 }} |text=12341 }} |e
}}}}). See #Forcing text display to turn this off.
Text and number recognition
By default, the template recognizes both text and numbers. That is, typing {{#ifeq:Template||Template:FormattingError|3.14{{e|-12}}}} will produce {{#ifeq:Template||Template:FormattingError|3.14{{#if:-12
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:-12|{{#ifeq:-12|{{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}}|true|{{#ifeq:-12|+{{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}}|true|{{#ifeq:-12|({{#if:{{#ifexpr:{{#expr:-12}}}}|(-12)|{{#expr:-12}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(-121)=(-12)|Template:FormattingError|{{#ifexpr:-12<0|−}}{{#ifexpr:abs(-121)>10*abs(-12)|{{#expr:abs(-12)}}|{{#expr:trunc(abs(-12))}}.{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(-121)=(-12)|Template:FormattingError|{{#ifexpr:-12<0|−}}{{#ifexpr:abs(-121)>10*abs(-12)|{{#expr:abs(-12)}}|{{#expr:trunc(abs(-12))}}.{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-121)-abs(-12))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-121)-trunc(abs(-121))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=-12 }} |text=-12 }} |e
}}}}, with the proper minus sign ({{#ifeq:Template||Template:FormattingError|−}}), rather than with a hyphen ({{#ifeq:Template||Template:FormattingError|-}}). However, typing {{#ifeq:Template||Template:FormattingError|A{{e|-BC}}}} will produce {{#ifeq:Template||Template:FormattingError|A{{#if:-BC
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:-BC|{{#ifeq:-BC|{{#if:{{#ifexpr:{{#expr:-BC}}}}|(-BC)|{{#expr:-BC}}}}|true|{{#ifeq:-BC|+{{#if:{{#ifexpr:{{#expr:-BC}}}}|(-BC)|{{#expr:-BC}}}}|true|{{#ifeq:-BC|({{#if:{{#ifexpr:{{#expr:-BC}}}}|(-BC)|{{#expr:-BC}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(-BC1)=(-BC)|Template:FormattingError|{{#ifexpr:-BC<0|−}}{{#ifexpr:abs(-BC1)>10*abs(-BC)|{{#expr:abs(-BC)}}|{{#expr:trunc(abs(-BC))}}.{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(-BC1)=(-BC)|Template:FormattingError|{{#ifexpr:-BC<0|−}}{{#ifexpr:abs(-BC1)>10*abs(-BC)|{{#expr:abs(-BC)}}|{{#expr:trunc(abs(-BC))}}.{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-BC1)-abs(-BC))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-BC1)-trunc(abs(-BC1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=-BC }} |text=-BC }} |e
}}}} since {{#ifeq:Template||Template:FormattingError|BC}} is not a number. In those cases, you need to write {{#ifeq:Template||Template:FormattingError|A{{e|−BC}}}} to produce the correct {{#ifeq:Template||Template:FormattingError|A{{#if:−BC
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:−BC|{{#ifeq:−BC|{{#if:{{#ifexpr:{{#expr:−BC}}}}|(−BC)|{{#expr:−BC}}}}|true|{{#ifeq:−BC|+{{#if:{{#ifexpr:{{#expr:−BC}}}}|(−BC)|{{#expr:−BC}}}}|true|{{#ifeq:−BC|({{#if:{{#ifexpr:{{#expr:−BC}}}}|(−BC)|{{#expr:−BC}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(−BC1)=(−BC)|Template:FormattingError|{{#ifexpr:−BC<0|−}}{{#ifexpr:abs(−BC1)>10*abs(−BC)|{{#expr:abs(−BC)}}|{{#expr:trunc(abs(−BC))}}.{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(−BC1)=(−BC)|Template:FormattingError|{{#ifexpr:−BC<0|−}}{{#ifexpr:abs(−BC1)>10*abs(−BC)|{{#expr:abs(−BC)}}|{{#expr:trunc(abs(−BC))}}.{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(−BC1)-abs(−BC))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(−BC1)-trunc(abs(−BC1))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=−BC }} |text=−BC }} |e
}}}}.
A minus sign also has to be provided for cases like {{#ifeq:Template||Template:FormattingError|1.2{{#if:1 − 2
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:1 − 2|{{#ifeq:1 − 2|{{#if:{{#ifexpr:{{#expr:1 − 2}}}}|(1 − 2)|{{#expr:1 − 2}}}}|true|{{#ifeq:1 − 2|+{{#if:{{#ifexpr:{{#expr:1 − 2}}}}|(1 − 2)|{{#expr:1 − 2}}}}|true|{{#ifeq:1 − 2|({{#if:{{#ifexpr:{{#expr:1 − 2}}}}|(1 − 2)|{{#expr:1 − 2}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(1 − 21)=(1 − 2)|Template:FormattingError|{{#ifexpr:1 − 2<0|−}}{{#ifexpr:abs(1 − 21)>10*abs(1 − 2)|{{#expr:abs(1 − 2)}}|{{#expr:trunc(abs(1 − 2))}}.{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(1 − 21)=(1 − 2)|Template:FormattingError|{{#ifexpr:1 − 2<0|−}}{{#ifexpr:abs(1 − 21)>10*abs(1 − 2)|{{#expr:abs(1 − 2)}}|{{#expr:trunc(abs(1 − 2))}}.{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(1 − 21)-abs(1 − 2))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(1 − 21)-trunc(abs(1 − 21))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=1 − 2 }} |text=1 − 2 }} |e
}}}} ({{#ifeq:Template||Template:FormattingError|1.2{{e|1 − 2}}}}).
Explicit plus sign
To explicitly display the {{#ifeq:Template||Template:FormattingError|+}} character, write {{#ifeq:Template||Template:FormattingError|1.2{{e|4|plus}}}} which will produce {{#ifeq:Template||Template:FormattingError|1.2{{#if:+4
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:+4|{{#ifeq:+4|{{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}}|true|{{#ifeq:+4|+{{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}}|true|{{#ifeq:+4|({{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(+41)=(+4)|Template:FormattingError|{{#ifexpr:+4<0|−}}{{#ifexpr:abs(+41)>10*abs(+4)|{{#expr:abs(+4)}}|{{#expr:trunc(abs(+4))}}.{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(+41)=(+4)|Template:FormattingError|{{#ifexpr:+4<0|−}}{{#ifexpr:abs(+41)>10*abs(+4)|{{#expr:abs(+4)}}|{{#expr:trunc(abs(+4))}}.{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=+4 }} |text=+4 }} |e
}}}}.
Forcing text display
To force the template to display the input as text, and forgo the automatic delimitation and the recognition of the hyphen as a minus sign, write {{#ifeq:Template||Template:FormattingError|1.2{{e|-42342|text}}}}, which will display {{#ifeq:Template||Template:FormattingError|1.2 × 10-42342}} instead of {{#ifeq:Template||Template:FormattingError|1.2{{#if:-42342
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:-42342|{{#ifeq:-42342|{{#if:{{#ifexpr:{{#expr:-42342}}}}|(-42342)|{{#expr:-42342}}}}|true|{{#ifeq:-42342|+{{#if:{{#ifexpr:{{#expr:-42342}}}}|(-42342)|{{#expr:-42342}}}}|true|{{#ifeq:-42342|({{#if:{{#ifexpr:{{#expr:-42342}}}}|(-42342)|{{#expr:-42342}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(-423421)=(-42342)|Template:FormattingError|{{#ifexpr:-42342<0|−}}{{#ifexpr:abs(-423421)>10*abs(-42342)|{{#expr:abs(-42,342)}}|{{#expr:trunc(abs(-42,342))}}.{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(-423421)=(-42342)|Template:FormattingError|{{#ifexpr:-42342<0|−}}{{#ifexpr:abs(-423421)>10*abs(-42342)|{{#expr:abs(-42,342)}}|{{#expr:trunc(abs(-42,342))}}.{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(-423421)-abs(-42342))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(-423421)-trunc(abs(-423421))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=-42342 }} |text=-42342 }} |e
}}}}. This can also be used as an alternative to explicitly display the plus sign ({{#ifeq:Template||Template:FormattingError|1.2{{e|+4|text}}}} gives {{#ifeq:Template||Template:FormattingError|1.2{{#if:+4
|×10{{#switch:{{{2}}} |#default={{#switch:{{#if:+4|{{#ifeq:+4|{{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}}|true|{{#ifeq:+4|+{{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}}|true|{{#ifeq:+4|({{#if:{{#ifexpr:{{#expr:+4}}}}|(+4)|{{#expr:+4}}}})|true|false}}}}}}}} |#default={{#switch:{{{2}}} |plus=+{{#ifexpr:(+41)=(+4)|Template:FormattingError|{{#ifexpr:+4<0|−}}{{#ifexpr:abs(+41)>10*abs(+4)|{{#expr:abs(+4)}}|{{#expr:trunc(abs(+4))}}.{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} |#default={{#ifexpr:(+41)=(+4)|Template:FormattingError|{{#ifexpr:+4<0|−}}{{#ifexpr:abs(+41)>10*abs(+4)|{{#expr:abs(+4)}}|{{#expr:trunc(abs(+4))}}.{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>14|Template:FormattingError|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=1|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E1mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=2|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E2mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=3|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E3mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=4|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>4|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E4mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=5|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E5mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=6|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E6mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=7|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>7|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E7mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=8|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E8mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=9|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E9mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=10|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>10|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E10mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=11|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E11mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=12|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E12mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=13|{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>13|}}{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E13mod10}}{{#ifexpr:{{#expr:(-ln(abs(+41)-abs(+4))/ln10round 0)-1}}>=14|{{#expr:{{#expr:abs(+41)-trunc(abs(+41))}}*1E14mod10}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }} |false=+4 }} |text=+4 }} |e
}}}}), but remember that you also lose delimitation if you do it this way.
See also
- {{val}}
This page has it's origination in the Wikimedia Foundation's development website Meta-wiki or has been exported and is now part of the newer Mediawiki software resources website for assisting new wikis with startup organization and has been copied according to the terms of the (CC-BY-SA-3.0), the GFDL standard GNU pulic license or the source file(s) is/are in the public domain.
|
---|
<in cludeonly>∅
</includeonly>