[Python-ideas] Python Numbers as Human Concept Decimal System

random832 at fastmail.us random832 at fastmail.us
Fri Mar 7 21:39:03 CET 2014


On Wed, Mar 5, 2014, at 7:30, Oscar Benjamin wrote:
> In C and some other languages the f suffix indicates a numeric literal
> that has type "float" e.g. "6.0f". You can use upper case there as
> well but the convention is lower case and to include the .0 when it's
> an integer. I just though that 3F looks sufficiently distinct from the
> way it's typically done in C.

How about 3r?

On the subject of suffixes, it might be worth considering that they
often use "d" for "double" as well. C# uses "m" (for money) for decimal.


More information about the Python-ideas mailing list