Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Convert/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Rounding input=== There is limited support for rounding the displayed ''input'' number. The rounding takes place ''after'' conversion, so the output is based on the full-precision input. This is useful when the input is produced by {{tlc|#expr:}} or otherwise available to a higher precision than is usefully displayed, and it's desirable to avoid double-rounding. To round the input to a specified number of digits after the decimal point, use one of the parameters: * {{para|adj|ri0}} * {{para|adj|ri1}} * {{para|adj|ri2}} * {{para|adj|ri3}} Note that it is not possible to round above the decimal place ({{para|adj|ri-1}}{{nay}} is invalid). Neither is there support for significant figures, multiples of a number, or any other output-rounding feature. The default precision is computed based on the input, so an explicit output precision must usually be supplied: * {{tlc|convert|4.14159|mi|km|adj{{=}}ri0}} β {{convert|4.14159|mi|km|adj=ri0}} {{nay}} (precisions are mismatched) * {{tlc|convert|4.14159|mi|km|0|adj{{=}}ri0}} β {{convert|4.14159|mi|km|0|adj=ri0}} {{aye}} In this case, if the input were rounded before conversion, a different result would be obtained: * {{tlc|convert|<nowiki>{{#expr:4.14159 round 0}}</nowiki>|mi|km|0}} β {{convert|{{#expr:4.14159 round 0}}|mi|km|0}} {{nay}} (rounds intermediate calculation, giving a different result)
Summary:
Please note that all contributions to Bourbon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Bourbon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width