Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics Types and Branching Numeric

Christopher Hall
seal-mask
.a{fill-rule:evenodd;}techdegree
Christopher Hall
Python Web Development Techdegree Student 196 Points

No rounding error in my workspace

When I type 1+1+1-3 or 4+3-7, I just get a flat zero. It's nice that there are no rounding errors, but there have been other similarly streamlined simplifications in other modules that have prevented me from taking advantage of learning through fixes (as would have been provided in the case of employing the 'round' fix).

1 Answer

Hi Chris. I know I'm familiar with what you've experienced before. It's always possible to look them up:

python docs: rounding error

python rounding error in Stack Overflow

For now, I recommend you simply don't worry about it until it comes up, because when you have a specific problem to solve, it's easiest to address it that way. In this scenario, it is best to be reactive rather than proactive :)

Of course if you're trying to solve something in particular, please let us know.

Cheers,

-Mark