167k views
17 votes
& What value is returned from this command? Math.floor(5.89) A. 5.9 B. 5.0 C. 6.0 D. This code produces an error​

1 Answer

4 votes

Answer:

B

6.0 because first approximate 5.8 to 5.9 then approximate 5.9 to 6.0

User George Sun
by
5.7k points