Template:Val/delimitnum: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
#ifeq:{{{fmt|gaps}}}|gaps belongs inside #ifexpr:({{{1|0}}}1)=({{{1|0}}}) (the rest is cosmetic)
meta>Jimp
Appending a non-zero digit to multiply integers and only integers by more than 10 does not work for numbers between +1 & −1.
Line 15: Line 15:


                 Test whether the number is an integer.  
                 Test whether the number is an integer.  
                (Appending a non-zero digit multiplies it by more than 10.)
     -->|{{#ifexpr:trunc(abs({{{1|0}}}))=0
     -->|{{#ifexpr:abs({{{1|0}}}9)>10*abs({{{1|0}}})
           |<!--  
           |<!--  
                 The number is an integer.  
                 The number is an integer.  

Revision as of 11:10, 11 February 2014