1
$\begingroup$

I'm trying to become a List like this

list={1.34,2.64,5.098,6.432}

in a list where the numbers have precision of one digit, like this

list={1.3,2.6,5.1,6.4}

I tried with the Function N but it did not work out. ¿What can I make it?

$\endgroup$
1
  • 4
    $\begingroup$ list2 = Round[list, 0.1] $\endgroup$
    – Bob Hanlon
    Jun 29 '20 at 0:18
2
$\begingroup$

The function Numberform will do it. Try:

Numberform[list,2]

you should get the result you wanted. The second argument of the function is the number of digits you want.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.