Difference between revisions of "Template:Convert/numdisp/frac"
From Teampedia
(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) | |
− | -- | + | |
− | + | ||
− | + | ||
--></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 | + | [[Category:Subtemplates of Template Convert]] |
</noinclude> | </noinclude> |
Latest revision as of 21:05, 10 April 2020
−6 3⁄8