Timeline for Limit to 2 decimal places with a simple pipe
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 1, 2017 at 10:06 | comment | added | dfsq | @Brian Implement custom pipe that maybe uses number internally and slices to necessary length. | |
Dec 1, 2017 at 3:46 | comment | added | Brian | How to use Pipe to transform a number to 1 decimal place and without roundup. Ex: 345.678 => 345.6 | |
Aug 11, 2017 at 11:15 | comment | added | Everton Santos | mehaase, is not the same. For example if you have 5.6 and 5.6789 the output will be 5.60 and 5.6789. So, the first parameter is the min and the second is the number of maximum digits. | |
Jun 28, 2017 at 17:27 | comment | added | Mark E. Haase |
For future readers, {{ x | number : '1.2'}} is also valid and means the same thing.
|
|
May 29, 2017 at 18:00 | comment | added | Protagonist | How do I restrict it to have always maximum 3 digits and 2 decimals? | |
May 23, 2017 at 2:16 | comment | added | maudulus |
This was helpful in understanding why 1.2-2 stackoverflow.com/questions/38477970/…
|
|
Apr 11, 2017 at 0:39 | comment | added | akhouri | refer for details regarding using number pipe | |
Jul 19, 2016 at 11:19 | vote | accept | rushtoni88 | ||
Jul 19, 2016 at 10:41 | history | answered | dfsq | CC BY-SA 3.0 |