Bahaipedia
Bahaipedia
Menu
About Bahaipedia
Ask a question
General help
Random page
Recent changes
In other projects
Tools
What links here
Related changes
Upload file
Special pages
Printable version
Permanent link
Page information
Template
Discussion
View history
Talk
Contributions
Create account
Log in
Navigation
About Bahaipedia
Ask a question
General help
Random page
Recent changes
In other projects
Learn more
Core topics
Bahá’í Faith
Central Figures
Teachings
Practices
Tools
What links here
Related changes
Upload file
Special pages
Printable version
Permanent link
Page information
Translations

Template:Precision1

From Bahaipedia
Jump to:navigation, search
Template documentation[view] [edit] [history] [purge]

{{precision1}} is very similar to {{precision}}, but the output range is only 0 to 6. Thus the functinality of {{precision1}} is a subset of the functionality of {{precision}}, but the advantage is that the template code is much shorter. It is useful when one has to be cautious of template pre-expand limits.

Examples[edit]

{{Precision1|111.12345678}}

6

{{Precision1|111.1234567}}

6

{{Precision1|111.123456}}

6

{{Precision1|111.12345}}

5

{{Precision1|111.1234}}

4

{{Precision1|111.123}}

3

{{Precision1|111.12}}

2

{{Precision1|111.1}}

1

{{Precision1|111}}

0

{{Precision1|110}}

0

{{Precision1|100}}

0

{{Precision1|111.10}}

2

{{Precision1|111.100}}

3

{{Precision1|111.1000}}

4

The above documentation is transcluded from Template:Precision1/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://bahaipedia.org/index.php?title=Template:Precision1&oldid=22995"
Category:
  • Mathematical function templates
This page was last edited on 27 August 2008, at 05:56.
Text is available under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.
Privacy policy
About Bahaipedia
Disclaimers
Powered by MediaWiki