Difference between revisions of "Template:Chem molar mass/calc charge"
Jump to navigation
Jump to search
imported>DePiep (re option: charge="+", "-" (ie +1, -1, but no number): accept & calculate correct.) |
imported>DePiep |
||
| Line 2: | Line 2: | ||
-->({{#ifeq:{{#invoke:String|find|source={{{charge|0}}}|target=[%-%−]|plain=false}}|0|-|}}<!-- | -->({{#ifeq:{{#invoke:String|find|source={{{charge|0}}}|target=[%-%−]|plain=false}}|0|-|}}<!-- | ||
get the number (absolute ie positive): | get the number (absolute ie positive): | ||
| − | --> | + | -->{{#invoke:String|replace|source={{{charge|0}}}|pattern=[%-%−%+%, ]|replace=|plain=false}} * 0.000548579909070)<!-- |
| − | The number is from: | + | The number is from: See documentation: NIST, 2014 CODATA |
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Revision as of 19:49, 17 February 2019
(-0 * 0.000548579909070)
|charge=-1→ Template:Val
{{Chem molar mass|charge=-1}}→ Template:Val g·mol−1
- Source
- "electron mass in u (me)". NIST.
2014 CODATA
- Template:Val
- Template:Val as used (15 decimals)
Usage
- (-0 * 0.000548579909070)
- (-0 * 0.000548579909070)
- (0 * 0.000548579909070)
- (-1 * 0.000548579909070)
- (-1 * 0.000548579909070)
- (1 * 0.000548579909070)
- (1 * 0.000548579909070)
- (-2 * 0.000548579909070)
- (1 * 0.000548579909070)
- (1 * 0.000548579909070)
- (20 * 0.000548579909070)
- (2.57 * 0.000548579909070)
- (2573 * 0.000548579909070)
option charge=+, - (no number)
- (-1 * 0.000548579909070)
- (1 * 0.000548579909070)
- (1 * 0.000548579909070)
- (- * 0.000548579909070)
- ( * 0.000548579909070)
- ( * 0.000548579909070)
- (-2 * 0.000548579909070)
- (2 * 0.000548579909070)
- (2 * 0.000548579909070)
| The above documentation is transcluded from Template:Chem molar mass/calc charge/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |