0 Members and 2 Guests are viewing this topic.
Yes, int() cuts off any decimals (converts it to an Integer).
But the nspire literally cuts off the decimals and leaves the dot (.) in place.
Quote from: ElementCoder on January 25, 2013, 04:26:37 pmYes, int() cuts off any decimals (converts it to an Integer).More importantly it rounds downint(9.57)=9int(-9.57)=-10Quote from: ElementCoder on January 25, 2013, 04:26:37 pmBut the nspire literally cuts off the decimals and leaves the dot (.) in place.Well if you were worried about that you could give int(9.57)->approxFraction(5.E-14)