Difference between revisions of "Template:Frac/doc"

From Zero-K
Jump to navigation Jump to search
(Added category.)
(Added category... correctly.)
Line 2: Line 2:
 
<samp style="display:block;text-align:center">&minus; {{ {{BASEPAGENAME}}|<var>numerator</var>|{{expr|<var>denominator &minus; {{expr|{{ {{BASEPAGENAME}}|<var>numerator</var>|<var>denominator</var>}}}}}}}}, &minus; {{ {{BASEPAGENAME}}|{{expr|<var>numerator</var> + {{expr|{{ {{BASEPAGENAME}}|<var>numerator|<var>denominator</var>}}</var>|<var>denominator}}}}}}</samp>
 
<samp style="display:block;text-align:center">&minus; {{ {{BASEPAGENAME}}|<var>numerator</var>|{{expr|<var>denominator &minus; {{expr|{{ {{BASEPAGENAME}}|<var>numerator</var>|<var>denominator</var>}}}}}}}}, &minus; {{ {{BASEPAGENAME}}|{{expr|<var>numerator</var> + {{expr|{{ {{BASEPAGENAME}}|<var>numerator|<var>denominator</var>}}</var>|<var>denominator}}}}}}</samp>
  
{{Category:Math}}
+
[[Category:Math]]

Revision as of 05:31, 17 September 2021

Creates simple inline fractions like this one: numerator ÷ denominator. There is no awareness of where the line is, so if the top or the bottom of the fraction is too tall, vertical centering will be wrong: numerator ÷ (denominator − (numerator ÷ denominator)), − (numerator + (numerator ÷ denominator)) ÷ denominator