[Tutor] Fwd: Re: Simple guessing game - need help with the math

Dave Angel davea at davea.name
Tue Nov 4 04:58:18 CET 2014

You're still using html mail, and still top-posting. 


> But my curiosity is still begging me for an answer regarding my original approach. Is there a way to manage the functionality of be round function such that it does not strip any data to the right of the decimal point?

That's the whole point of round (). If you tell what you wish it
 to do, with sample data and desired results,  we can probably
 suggest an approach.  Or you could look at the message I posted
 some time ago, suggesting adding one before dividing by

Sometimes the best answer is to truncate by converting to int. But
 the increment is frequently needed as well.


More information about the Tutor mailing list