docs: describe rounding behaviour of 'DecimalPipe' (#24303)

PR Close #24303
This commit is contained in:
Sergej
2018-06-29 08:38:39 +02:00
committed by Miško Hevery
parent b51ce62c58
commit bc2bf184a2
2 changed files with 19 additions and 1 deletions

View File

@ -38,6 +38,9 @@ registerLocaleData(localeFr);
<!--output '003.14000'-->
<p>pi (3.5-5): {{pi | number:'3.5-5'}}</p>
<!--output '-3' / unlike '-2' by Math.round()-->
<p>-2.5 (1.0-0): {{-2.5 | number:'1.0-0'}}</p>
</div>`
})
export class NumberPipeComponent {