[Tutor] How does the interpreter determine how many decimal places to display for a float?

Alan Gauld alan.gauld at yahoo.co.uk
Sun May 16 14:59:17 EDT 2021


On 16/05/2021 17:48, boB Stepp wrote:

> This is helpful.  However, I tend to (so far) be clumsy in finding a
> decent starting point.  Since your original reply I have been poking
> around the cpython source and am getting a better handle on how it is
> arranged.  

If you aren't already be sure to spend 15 minutes learning ctags.
It makes navigating around C code very much easier since you can
put your cursor(in vi./vim) on a function name and "goto tag"
which will take you straight into the correct file at the
function definition.

Modern IDEs tend to have similar capabilities but ctags is
the original Unix way of doing that.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list