Vorlage:Px2mm
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 26 dazwischenliegende Versionen mit ein.) | |||
Zeile 1: | Zeile 1: | ||
<noinclude> | <noinclude> | ||
- | {{px2mm|118|debug}} | + | Ohne erzwungenes Vorzeichen:<br> |
- | </noinclude><includeonly>{{#ifeq:{{{ | + | 3px = {{px2mm|3}}; 2px = {{px2mm|2}}; 1px = {{px2mm|1}}; 0px = {{px2mm|0}}; -1px = {{px2mm|-1}}; -2px = {{px2mm|-2}}; -3px = {{px2mm|-3}}<br> |
- | />{{#expr:trunc({{{1|0}}}/600*25.4)}},{{#expr:({{{1|0}}}/60*25.4 round 0)-trunc({{{1|0}}}/600*25.4)*10}}<nowiki | + | Mit erzwungenem Vorzeichen:<br> |
- | + | 3px = {{px2mm|3|v}}; 2px = {{px2mm|2|v}}; 1px = {{px2mm|1|v}}; 0px = {{px2mm|0|v}}; -1px = {{px2mm|-1|v}}; -2px = {{px2mm|-2|v}}; -3px = {{px2mm|-3|v}}<br> | |
+ | ----- | ||
+ | {{px2mm|118|-|debug}}<br> | ||
+ | <nowiki>{{px2mm|118}}</nowiki> = {{px2mm|118}}<br> | ||
+ | <nowiki>{{px2mm|118|v}}</nowiki> = {{px2mm|118|v}} | ||
+ | ----- | ||
+ | {{px2mm|-118|-|debug}}<br> | ||
+ | <nowiki>{{px2mm|-118}}</nowiki> = {{px2mm|-118}}<br> | ||
+ | <nowiki>{{px2mm|-118|v}}</nowiki> = {{px2mm|-118|v}} | ||
+ | </noinclude><includeonly>{{#ifeq:{{{3|nodebug}}}|nodebug|<nowiki | ||
+ | />{{#if:{{{1}}}|<nowiki | ||
+ | />{{#ifexpr:{{{1|0}}} < -1|-|{{#ifeq:{{{2|-}}}|v|{{#ifexpr:{{{1|0}}} > 1|+}}}}}}<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 | ||
+ | />}}<nowiki | ||
+ | />|<nowiki | ||
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4}} <nowiki | />{{{1}}}px = {{#expr:{{{1}}}/600*25.4}} <nowiki | ||
/> = {{#expr:trunc({{{1|0}}}/600*25.4)}},{{#expr:({{{1|0}}}/60*25.4 round 0)-trunc({{{1|0}}}/600*25.4)*10}} <nowiki | /> = {{#expr:trunc({{{1|0}}}/600*25.4)}},{{#expr:({{{1|0}}}/60*25.4 round 0)-trunc({{{1|0}}}/600*25.4)*10}} <nowiki | ||
Zeile 9: | Zeile 25: | ||
/>{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 1}} ({{{1}}}/600*25.4 round 1)<br><nowiki | />{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 1}} ({{{1}}}/600*25.4 round 1)<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 2}} ({{{1}}}/600*25.4 round 2)<br><nowiki | ||
- | />{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 3}} ({{{1}}}/600*25.4 round 3) | + | />{{{1}}}px = {{#expr:{{{1}}}/600*25.4 round 3}} ({{{1}}}/600*25.4 round 3)<nowiki |
- | + | ||
- | + | ||
- | + | ||
/>}}</includeonly> | />}}</includeonly> |
Aktuelle Version vom 20:02, 11. Jan. 2025
Ohne erzwungenes Vorzeichen:
3px = 0,1; 2px = 0,1; 1px = 0,0; 0px = 0,0; -1px = 0,0; -2px = -0,1; -3px = -0,1
Mit erzwungenem Vorzeichen:
3px = +0,1; 2px = +0,1; 1px = 0,0; 0px = 0,0; -1px = 0,0; -2px = -0,1; -3px = -0,1
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)
{{px2mm|118}} = 5,0
{{px2mm|118|v}} = +5,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)
{{px2mm|-118}} = -5,0
{{px2mm|-118|v}} = -5,0