Q:

Use help elfun or experiment to answer the following questions:

0

Use help elfun or experiment to answer the following questions:

  1.   Is fix(3.5) the same as floor(3.5)?
  2.  Is fix(3.4) the same as fix(-3.4)? 
  3. Is fix(3.2) the same as floor(3.2)? 
  4. Is fix(-3.2) the same as floor(-3.2)?
  5. Is fix(-3.2) the same as ceil(-3.2)?  

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer :

  1. >> fix(3.5) ans = 3 >> floor(3.5) ans = 3
  2. >> fix(3.5) ans = 3 >> floor(3.5) ans = 3
  3. >> fix(3.2) ans = 3 >> floor(3.2) ans = 3
  4. >> fix(3.2) ans = 3 >> floor(3.2) ans = 3
  5. >> fix(-3.2) ans = -3 >> ceil(-3.2) ans = -3 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now