ढाँचा:E
The {{e}} and {{10^}} templates are intended to facilitate and make uniform scientific notation numbers. The {{10^}} template works exactly as described below except that it does not generate a multiplication (“×”) symbol.
Usage
सम्पादन गर्नुहोस्To render 3.14×१०−१२, instead of writing 3.14 × 10<sup>−12</sup> you can write 3.14{{e|-12}}:
{{e|b}} → ×१०b
{{10^|b}} → 10b
{{e|-12}} → ×१०−१२
{{10^|-12}} → 10−12
The first output character for {{e}} is a non-breaking thin-space (“]” and “[” are used to illustrate the effects):
]{{e|b}}[ → ]×१०b[
]{{10^|b}}[ → ]10b[
]{{e|-12}}[ → ]×१०−१२[
]{{10^|-12}}[ → ]10−12[
Delimiters
सम्पादन गर्नुहोस्The template uses gaps or commas, per {{val/delimitnum}}.
1.2{{e|12341}} → 1.2×१०१२३४१
See #Forcing text display to turn this off.
Text and number recognition
सम्पादन गर्नुहोस्By default, the template recognizes both text and numbers. That is, typing 3.14{{e|-12}} will produce 3.14×१०−१२, with the proper minus sign (“−”), rather than with a hyphen (“-”). However, typing A{{e|-BC}} will produce A×१०-BC since BC is not a number. In those cases, you need to write A{{e|−BC}} to produce the correct A×१०−BC.
A minus sign also has to be provided for cases like 1.2×१०१ − २ (1.2{{e|1 − 2}}).
Explicit plus sign
सम्पादन गर्नुहोस्To explicitly display the + character, write 1.2{{e|4|plus}} which will produce 1.2×१०+४.
Forcing text display
सम्पादन गर्नुहोस्To force the template to display the input as text, and forgo the automatic delimitation and the recognition of the hyphen as a minus sign, write 1.2{{e|−42342|text}}, which will display 1.2×१०−४२३४२ instead of 1.2×१०−४२३४२. This can also be used as an alternative to explicitly display the plus sign (1.2{{e|+4|text}} gives 1.2×१०+४), but remember that you also lose delimitation if you do it this way.
Tracking category
सम्पादन गर्नुहोस्- श्रेणी:Articles using E without any arguments (०) – a hidden category which may be added to pages using Template:E
See also
सम्पादन गर्नुहोस्- m:Template:e
- {{e-sp}}, a more spaced version of {{e}}.
- {{val}}
- {{scinote}}