Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42335
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: round off to two decimal & return float |
| Date | 2013-03-30 13:36 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <kj6ppl$kiq$1@reader1.panix.com> (permalink) |
| References | <515699DB.8060104@amachu.me> <CALk2KRU37Ri-EfwGKZK3MR-MHBoCuvx1u6DDj7BqBcav+9OqCA@mail.gmail.com> <mailman.3992.1364636123.2939.python-list@python.org> |
On 2013-03-30, ????????????????????? <amachu@amachu.me> wrote: > On Saturday 30 March 2013 02:58 PM, Roland Mueller wrote: >> >> >> >> I assume you have a numeric value a and want to have a float with 2 >> decimals. This can be achieved with the function round(): > > But I need 10.00 and not 10.0 They're the same number. Are you asking how to format floating point numbers when they're displayed? -- Grant
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: round off to two decimal & return float ஆமாச்சு <amachu@amachu.me> - 2013-03-30 15:02 +0530 Re: round off to two decimal & return float Grant Edwards <invalid@invalid.invalid> - 2013-03-30 13:36 +0000
csiph-web