Re: Re: Decimal type question [Prothon]
Mark Hahn <[email protected]> Mon, 9 Aug 2004 20:32:28 -0700
| Newsgroups | gmane.comp.lang.prothon.user,gmane.comp.python.devel |
|---|---|
| Organization | Hahn Creative Applications |
| Message-ID | <[email protected]> |
On Tue, 10 Aug 2004 14:11:50 +1200, Greg Ewing wrote: >> How about a basic built-in numeric default type called Decimal with all the >> default numeric constant formats (123, 123.0, & 123e0) and a separate >> binary double hardware type called Float with the constant format of 0f0, >> 1f0, -1.3f-34, etc. where the letter "f" replaces the letter "e"? > > Since the base is the important distinction between these, > if the decimal one is to be called Decimal, the binary one > should be called Binary. The exponent character should be > 'b' to reinforce this. I thought of that, but I was afraid people would get 0b0 (a legal binary float zero) confused with the 0b1011001 format that people have asked for. Some day we may decide we want to use b for that. (This should really be on Prothon-user).