Persönliche Werkzeuge

Vorlage:Px2mm

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
<noinclude>
<noinclude>
 +
Ohne erzwungenes Vorzeichen:<br>
 +
1px = {{px2mm|1}}; 0px = {{px2mm|0}}; -1px = {{px2mm|-1}}<br>
 +
Mit erzwungenem Vorzeichen:<br>
 +
1px = {{px2mm|1|v}}; 0px = {{px2mm|0|v}}; -1px = {{px2mm|-1|v}}
-----
-----
{{px2mm|118|-|debug}}
{{px2mm|118|-|debug}}
Zeile 8: Zeile 12:
</noinclude><includeonly>{{#ifeq:{{{3|nodebug}}}|nodebug|<nowiki
</noinclude><includeonly>{{#ifeq:{{{3|nodebug}}}|nodebug|<nowiki
/>{{#if:{{{1}}}|<nowiki
/>{{#if:{{{1}}}|<nowiki
-
   />{{#ifexpr:{{{1|0}}} < 0|-|{{#ifeq:{{{2|-}}}|v|+}}}}<nowiki
+
   />{{#ifexpr:{{{1|0}}} < 0|-|{{#ifeq:{{{2|-}}}|v|{{#ifexpr:{{{1|0}}} > 0|+}}}}}}<nowiki
   />{{#ifexpr:{{#expr:((abs {{{1|0}}})/60*25.4 round 0)-trunc((abs {{{1|0}}})/600*25.4)*10}}=10|<nowiki
   />{{#ifexpr:{{#expr:((abs {{{1|0}}})/60*25.4 round 0)-trunc((abs {{{1|0}}})/600*25.4)*10}}=10|<nowiki
             />{{#expr:trunc((abs {{{1|0}}})/600*25.4)+1}},0|<nowiki
             />{{#expr:trunc((abs {{{1|0}}})/600*25.4)+1}},0|<nowiki
Zeile 20: Zeile 24:
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 2}} ({{{1}}}/600*25.4 round 2)<br><nowiki
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 2}} ({{{1}}}/600*25.4 round 2)<br><nowiki
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 3}} ({{{1}}}/600*25.4 round 3)<br><nowiki
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 3}} ({{{1}}}/600*25.4 round 3)<br><nowiki
-
/>{{{1}}}px = {{#ifexpr:{{{1|0}}} < 0|-|{{#ifeq:{{{2|-}}}|v|+}}}}<nowiki
 
-
            />{{#ifexpr:{{#expr:((abs {{{1|0}}})/60*25.4 round 0)-trunc((abs {{{1|0}}})/600*25.4)*10}}=10|<nowiki
 
-
                        />{{#expr:trunc((abs {{{1|0}}})/600*25.4)+1}},0|<nowiki
 
-
                        />{{#expr:trunc((abs {{{1|0}}})/600*25.4)}},{{#expr:((abs {{{1|0}}})/60*25.4 round 0)-trunc((abs {{{1|0}}})/600*25.4)*10}}}}<nowiki
 
/>}}</includeonly>
/>}}</includeonly>

Version vom 19:48, 11. Jan. 2025

Ohne erzwungenes Vorzeichen:
1px = 0,0; 0px = 0,0; -1px = 0,0
Mit erzwungenem Vorzeichen:
1px = 0,0; 0px = 0,0; -1px = 0,0


118px = 4.99533333333 = 4,10 (a=4; b=50; c=40)
118px = 5 (118/600*25.4 round 1)
118px = 5 (118/600*25.4 round 2)
118px = 4.995 (118/600*25.4 round 3)


-118px = -4.99533333333 = -4,-10 (a=-4; b=-50; c=-40)
-118px = -5 (-118/600*25.4 round 1)
-118px = -5 (-118/600*25.4 round 2)
-118px = -4.995 (-118/600*25.4 round 3)


118px = 4.99533333333 = 4,10 (a=4; b=50; c=40)
118px = 5 (118/600*25.4 round 1)
118px = 5 (118/600*25.4 round 2)
118px = 4.995 (118/600*25.4 round 3)