maybe print zero decimal places if they have followed your instructions but 
print a float (maybe with an explanation) if it evaluates to not a whole number


> Hi Tony,
> 
> thanks for the suggestions. I've been thinking about some of those things
> myself already.
> I have only one comment:
> 
> On Thu, Jul 8, 2010 at 6:14 PM, <[email protected]> wrote:
> 
> > print a/b rounds to an integer (which is confusing)
> >
> 
> That was on purpose. I'm not sure how old the learners will be and if
> they've learned about decimal numbers. That is why I've only given them
> examples in which the division results are integers. In one of the later
> lessons I introduce the concept of floating point numbers and give it some
> space there.
> 
> However, your comment gave me an idea. I'll check the numbers the user
> enters and give him some sort of a warning if the result should be float.
> How does that sound?
> 
> _____________________________________________________
> This mail has been virus scanned by Australia On Line
> see http://www.australiaonline.net.au/mailscanning
> Hi Tony,<br><br>thanks for the suggestions. I've been thinking about some of 
> those things myself already.<br>I have only one comment: <br><br><div 
> class="gmail_quote">On Thu, Jul 8, 2010 at 6:14 PM,  <span dir="ltr"><<a 
> href="mailto:[email protected]";>[email protected]</a>></span> 
> wrote:<br>
> 
> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 
> 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
> print a/b rounds to an integer (which is 
> confusing)<br></div></div></blockquote><div><br>That was on purpose. I'm not 
> sure how old the learners will be and if they've learned about decimal 
> numbers. That is why I've only given them examples in which the division 
> results are integers. In one of the later lessons I introduce the concept of 
> floating point numbers and give it some space there. <br>
> 
> <br>However, your comment gave me an idea. I'll check the numbers the user 
> enters and give him some sort of a warning if the result should be float. How 
> does that sound?<br></div></div><br>

_______________________________________________
IAEP -- It's An Education Project (not a laptop project!)
[email protected]
http://lists.sugarlabs.org/listinfo/iaep

Reply via email to