Difference between revisions of "Template:Convert/numdisp/frac"

From Teampedia
Jump to: navigation, search
(Created page with "<noinclude><!-- --============================================================ -- Process fraction parts by negative/zero/positive (-1,0,1) --================================...")
 
 
Line 4: Line 4:
 
-- Process fraction parts by negative/zero/positive (-1,0,1)
 
-- Process fraction parts by negative/zero/positive (-1,0,1)
 
--============================================================
 
--============================================================
 
+
--                                     (see NOTES below)
-->{{documentation|content=This subtemplate is called by {{tl|convert/numdisp}} and by {{tl|convert/and/frn1}} to process fractions according to whether the whole number part (i.e. the ''a'' in {{frac|''a''|''b''|''c''}}) is positive, negative or zero calling {{tl|convert/numdisp/frac1}}, {{tl|convert/numdisp/frac-1}} or {{tl|convert/numdisp/frac0}} respectively.}}<!--
+
 
+
 
+
 
--></noinclude>{{convert/numdisp/frac{{
 
--></noinclude>{{convert/numdisp/frac{{
   #expr:( {{{2|-6-3}}}*0>0) - ( {{{2|-6-3}}}*0<0) }}
+
   #expr:( {{{2|-6-3}}}*0>0
 +
    or {{#ifeq: 0+ |{{padleft:|2|{{{2|-6-3}}}x }} |1 |0}}
 +
  ) - ( {{{2|-6-3}}}*0<0) }}
 
|{{{2|-6-3}}}|{{#expr:{{{2|-6-3}}}*0}}|{{#expr:0*{{{2|-6-3}}}}}|{{{3|8}}}}}<noinclude><!--
 
|{{{2|-6-3}}}|{{#expr:{{{2|-6-3}}}*0}}|{{#expr:0*{{{2|-6-3}}}}}|{{{3|8}}}}}<noinclude><!--
 
--------------------------------------------------------------
 
--------------------------------------------------------------
Line 53: Line 52:
 
--19Nov10 Put HISTORY comments to log major changes.
 
--19Nov10 Put HISTORY comments to log major changes.
 
--28Jun11 Merge back to {{Convert/numdisp/frac}}  
 
--28Jun11 Merge back to {{Convert/numdisp/frac}}  
 +
--04Jun14 Changed to allow "0+" as whole-number portion.
 +
--04Jun14 Moved doc text to bottom as normal format.
 
--
 
--
 
-- ** Add interwiki links on docpage to limit changes here **
 
-- ** Add interwiki links on docpage to limit changes here **
 
-->
 
-->
[[Category:Subtemplates of Template Convert|{{PAGENAME}}]]
+
[[Category:Subtemplates of Template Convert]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:05, 10 April 2020

−638