Difference between revisions of "Template:DEC/workpage"

From blackwiki
Jump to navigation Jump to search
Line 16: Line 16:
 
</pre>
 
</pre>
 
{{#explode:{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|.|1}}
 
{{#explode:{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|.|1}}
 +
 +
<pre>
 +
{{str right|{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|1}}
 +
</pre>
 +
{{str right|{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|1}}

Revision as of 07:31, 29 June 2012

Template:NobotsTemplate:Workpage

Try to extract fractional part

{{#expr: {{#expr: abs -13.26 }} mod {{#expr: abs {{#expr: trunc -13.26}} }} }}

0

{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}

0.26

{{#explode:{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|.|1}}

{{#explode:0.26|.|1}}

{{str right|{{#expr: (abs -13.26) - (abs (trunc -13.26)) }}|1}}

.26