A
A
Andrey Astafiev2016-04-14 18:23:49
Angular
Andrey Astafiev, 2016-04-14 18:23:49

How to round the result of evaluating an expression?

on the page I use the following calculation, it turns out (106.89999999999999)
{{(k/100)*row.x}}
how to round to tenths?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-04-14
@Nc_Soft

plain js -> toFixed()
angular -> number:2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question