This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients john Forgue, steven.daprano
Date 2017-07-08.03:30:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499484608.03.0.401085146923.issue30875@psf.upfronthosting.co.za>
In-reply-to
Content
> Using  "round(number[, digits])" in a program I get no rounding

It works for me. Can you show an example of it not working?

py> round(1.23456789012345, 3)
1.235


> Using the same command in the terminal interpreter it returns
> ...   (3 periods) then hangs requiring ^C to continue.


That sounds like the interactive interpreter is waiting for a closing parenthesis (round bracket). It will sit and wait forever for you to finish typing the command. If you hit ENTER, you'll just get another prompt.

py> round(1.23456789012345, 3
...
...
... )
1.235


If this does not explain what you are seeing, you will have to give us more information, including examples of the failures and instructions for how to replicate the failure.
History
Date User Action Args
2017-07-08 03:30:08steven.dapranosetrecipients: + steven.daprano, john Forgue
2017-07-08 03:30:08steven.dapranosetmessageid: <1499484608.03.0.401085146923.issue30875@psf.upfronthosting.co.za>
2017-07-08 03:30:08steven.dapranolinkissue30875 messages
2017-07-08 03:30:07steven.dapranocreate