32:
83:
123:
714:
581:
686:
499:
Rounds (parameter 1) by (parameter 2) decimal places, and formats. Scientific notation is used for numbers greater than 1×10^9, or less than 1×10^−4.
719:
671:
659:
47:
190:
For example, rounding by 1 gives 1 decimal digit, rounding by 0 gives integers, or rounding by -2 gives the amount in hundreds.
698:
655:
43:
641:
157:
This template rounds parameter 1 by parameter 2 decimal places (goes the other way for negative rounding) and includes trailing zeros.
608:
597:
51:
482:
277:
478:
470:
681:
101:
105:
666:
474:
97:
559:
The number of decimal places, if negative the number is rounded so the last (parameter 2) digits are zero
59:
108:. The tested changes can be added to this page in a single edit. Consider discussing changes on the
191:
140:
109:
694:
649:
630:
39:
645:
408:
The second parameter, precision, should be an integer. Non-integer may give unexpected result.
619:
129:
96:
To avoid major disruption and server load, any changes should be tested in the template's
708:
136:
90:
17:
374:
As with #expr, the total number of significant digits is not more than 14:
26:
400:{{Round|.0001234567890123456789|20}}
91:
approximately 321,000 pages, or roughly 1% of all pages
273:
269:
220:
392:{{Round|123456789.0123456789|10}}
380:{{Round|1234567890.123456789|10}}
117:
77:
675:
68:
363:{{Round|-1234567899|-7}}
179:{{Round|68.4273E12|-10}}
311:{{Round|1542689271|-7}}
230:{{Round|0.000020004|7}}
439:{{Round|1.234567|2.7}}
431:{{Round|1.234567|2.3}}
323:{{Round|1542689271|2}}
355:{{Round|-1200007|-2}}
194:
is displayed for numbers greater than or equal to 1
447:Non-numeric input will result in an error message.
423:{{Round|1.234567|2}}
287:{{Round|1300004|-1}}
262:{{Round|1200004|-1}}
254:{{Round|154568|-3}}
246:{{Round|154268|-3}}
171:{{Round|54.376|-1}}
303:{{Round|4.1e6|10}}
213:{{Round|2.0004|3}}
163:{{Round|54.376|2}}
295:{{Round|4.1e6|9}}
347:{{Round|-123|1}}
335:{{Round|7e9|-9}}
459:Formatting error: invalid input when rounding
8:
496:
489:in articles based on its TemplateData.
415:{{Round|1.234567}}
238:{{Round|0|8}}
665:Editors can experiment in this template's
582:Category:Pages with bad rounding precision
502:
454:{{Round|invalid}}
715:Templates based on the Math Lua module
7:
483:See a monthly parameter usage report
458:
25:
121:
81:
30:
720:Mathematical function templates
278:m:Help:Format produced by expr
1:
272:}} → 1200000, even though {{
736:
639:
473:for this template used by
57:
699:Subpages of this template
510:
112:before implementing them.
104:subpages, or in your own
89:This template is used on
536:The number to be rounded
693:Add categories to the
576:Maintenance categories
492:TemplateData for Round
306:→ 4,100,000.0000000000
35:Template documentation
403:→ 0.00012345678901235
298:→ 4,100,000.000000000
128:This template uses
609:Significant figures
598:Rounded calculation
573:
507:
505:Template parameters
395:→ 123,456,789.01235
274:expr:1300004round-1
270:expr:1200004round-1
221:expr:2.0004 round 3
192:Scientific notation
650:Template:Round/doc
503:
501:
460:
276:}} → 1300000 (see
198:10, or less than 1
572:
571:
523:
497:
481:and other tools.
442:→ 1.2350673729657
434:→ 1.2329205947231
383:→ 1.2345678901235
150:
149:
116:
115:
16:(Redirected from
727:
690:
679:
663:
635:
629:
624:
618:
613:
607:
602:
596:
555:
532:
524:
508:
456:
455:
441:
440:
433:
432:
425:
424:
417:
416:
402:
401:
394:
393:
386:
382:
381:
369:
365:
364:
357:
356:
349:
348:
341:
337:
336:
329:
325:
324:
317:
313:
312:
305:
304:
297:
296:
289:
288:
264:
263:
256:
255:
248:
247:
240:
239:
232:
231:
215:
214:
201:
197:
185:
181:
180:
173:
172:
165:
164:
125:
124:
118:
85:
84:
78:
71:
55:
36:
34:
33:
21:
735:
734:
730:
729:
728:
726:
725:
724:
705:
704:
703:
702:
692:
684:
669:
664:
653:
638:
633:
627:
622:
616:
611:
605:
600:
594:
591:
578:
553:
530:
495:
467:
453:
452:
438:
437:
430:
429:
422:
421:
414:
413:
399:
398:
391:
390:
384:
379:
378:
367:
362:
361:
354:
353:
346:
345:
339:
334:
333:
327:
326:→ 1.54268927100
322:
321:
315:
310:
309:
302:
301:
294:
293:
286:
285:
261:
260:
253:
252:
245:
244:
237:
236:
229:
228:
212:
211:
208:
199:
195:
183:
178:
177:
170:
169:
162:
161:
155:
146:
122:
95:
82:
76:
75:
67:
62:
56:
37:
31:
29:
23:
22:
15:
12:
11:
5:
733:
731:
723:
722:
717:
707:
706:
637:
636:
625:
614:
603:
590:
587:
586:
585:
577:
574:
570:
569:
566:
563:
562:
556:
551:
550:decimal places
547:
546:
543:
540:
539:
533:
528:
522:
521:
518:
515:
512:
487:Template:Round
475:TemplateWizard
468:
466:
463:
462:
461:
449:
448:
444:
443:
435:
427:
419:
410:
409:
405:
404:
396:
388:
372:
371:
359:
351:
343:
331:
319:
307:
299:
291:
283:
282:
281:
258:
250:
242:
234:
226:
225:
224:
207:
204:
188:
187:
175:
167:
154:
151:
148:
147:
145:
144:
133:
126:
114:
113:
86:
74:
73:
63:
58:
28:
27:
24:
14:
13:
10:
9:
6:
4:
3:
2:
732:
721:
718:
716:
713:
712:
710:
700:
696:
688:
683:
677:
673:
668:
661:
657:
651:
647:
643:
642:documentation
632:
626:
621:
615:
610:
604:
599:
593:
592:
588:
583:
580:
579:
575:
567:
564:
561:
560:
557:
552:
549:
548:
544:
541:
538:
537:
534:
529:
526:
525:
519:
516:
513:
509:
506:
500:
494:
493:
488:
484:
480:
476:
472:
464:
451:
450:
446:
445:
436:
428:
420:
412:
411:
407:
406:
397:
389:
377:
376:
375:
360:
352:
344:
332:
320:
308:
300:
292:
284:
279:
275:
271:
267:
266:
259:
251:
243:
235:
227:
222:
218:
217:
210:
209:
205:
203:
193:
176:
168:
160:
159:
158:
152:
142:
138:
135:
134:
131:
127:
120:
119:
111:
107:
103:
99:
93:
92:
87:
80:
79:
70:
65:
64:
61:
53:
49:
45:
41:
19:
634:}}
628:{{
623:}}
617:{{
612:}}
606:{{
601:}}
595:{{
558:
535:
504:
498:
491:
490:
486:
479:VisualEditor
471:TemplateData
469:This is the
465:TemplateData
373:
358:→ −1,200,000
265:→ 1,200,000
241:→ 0.00000000
189:
156:
106:user subpage
88:
72:}}
66:{{
18:Template:Rnd
646:transcluded
514:Description
290:→ 1,300,000
137:Module:Math
50:] [
46:] [
42:] [
709:Categories
640:The above
268:whereas {{
102:/testcases
697:subpage.
682:testcases
631:Rounddown
584: (2)
568:suggested
511:Parameter
257:→ 155,000
249:→ 154,000
110:talk page
589:See also
545:required
350:→ −123.0
216:→ 2.000
206:Examples
98:/sandbox
60:Shortcut
674:|
667:sandbox
660:history
658:|
620:Roundup
366:→ −1.23
182:→ 6.843
166:→ 54.38
141:sandbox
48:history
691:pages.
565:Number
542:Number
527:number
520:Status
426:→ 1.23
314:→ 1.54
223:}} → 2
648:from
233:→ 000
153:Usage
54:]
52:purge
38:[
695:/doc
687:edit
680:and
676:diff
672:edit
656:edit
517:Type
485:for
202:10.
174:→ 50
44:edit
40:view
644:is
418:→ 1
338:→ 7
130:Lua
100:or
69:rnd
711::
652:.
477:,
457:→
387:10
370:10
342:10
330:10
318:10
219:{{
186:10
132::
701:.
689:)
685:(
678:)
670:(
662:)
654:(
554:2
531:1
385:×
368:×
340:×
328:×
316:×
280:)
200:×
196:×
184:×
143:)
139:(
94:.
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.