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