To: Richard Damon
From: "Stefan Ram"
To: Richard Damon
From: r...@zedat.fu-berlin.de (Stefan Ram)
Richard Damon writes:
>Now, if I have a parser that doesn't use the locale, but some other rule
>base than I just need to provide it with the right rules, which is
>basically just defining the
To: Richard Damon
From: "Marko Rauhamaa"
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>> Richard Damon :
>>
>>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
I always know my locale. The locale is tied to the human user.
>>> No, it sho
To: Richard Damon
From: "Marko Rauhamaa"
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
>> I always know my locale. The locale is tied to the human user.
> No, it should be tied to the data you are processing.
In computing, a locale i
To: Richard Damon
From: "Marko Rauhamaa"
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> If you know the Locale, then you do know what the decimal separator
> is, as that is part of what a locale defines.
I don't know what that sentence means.
> The issue is that if you just know
From: "Steven D'Aprano"
From: Steven D'Aprano
On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
> If you know the Locale, then you do know what the decimal separator is,
> as that is part of what a locale defines.
A locale defines a set of common cultural conventions. It doesn't mandat
From: "Richard Damon"
From: Richard Damon
On 6/22/18 11:21 PM, Steven D'Aprano wrote:
> On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
>
>> Steven D'Aprano writes:
>>
>>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>>
>> The code page remark is curious. Will some "
From: "Steven D'Aprano"
From: Steven D'Aprano
On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
> Steven D'Aprano writes:
>
>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>
> The code page remark is curious. Will some "code pages" have digits
> that are not ASCII
To: Steven D'Aprano
From: "Ben Bacarisse"
To: Steven D'Aprano
From: Ben Bacarisse
Steven D'Aprano writes:
> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>
The code page remark is curious. Will some "code pages" have digits
that are not ASCII digits?
>>>
>>> Good que
From: Richard Damon
On 6/23/18 10:44 PM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 17:52:55 -0400, Richard Damon wrote:
>
>> If you have more than just a number representing a value in the locale
>> currency, you can't ask the locale how to present/accept it.
> You're the only one saying that
From: Chris Angelico
On Sun, Jun 24, 2018 at 1:23 PM, Steven D'Aprano
wrote:
> On Sun, 24 Jun 2018 12:53:49 +1000, Chris Angelico wrote:
>
> [...]
>>> Okay, you want a bit-pattern. In hex:
>>>
>>> '0x313030e282ac'
> [...]
>
>> Hmm. Actually, I'm a bit confused.
>>
> hex("100ΓΘ¼".encode())
>>
From: Steven D'Aprano
On Sun, 24 Jun 2018 12:53:49 +1000, Chris Angelico wrote:
[...]
>> Okay, you want a bit-pattern. In hex:
>>
>> '0x313030e282ac'
[...]
> Hmm. Actually, I'm a bit confused.
>
hex("100ΓΘ¼".encode())
> Traceback (most recent call last):
> File "", line 1, in
> TypeErro
From: Chris Angelico
On Sun, Jun 24, 2018 at 12:44 PM, Steven D'Aprano
wrote:
> You're joking, right? You can't possibly be so ignorant as to actually
> believe that. You have, right in front of you, a news post or email
> containing the text string "100ΓΘ¼", and yet you are writing apparently i
From: Steven D'Aprano
On Sat, 23 Jun 2018 17:52:55 -0400, Richard Damon wrote:
> If you have more than just a number representing a value in the locale
> currency, you can't ask the locale how to present/accept it.
You're the only one saying that it has to be handled by the locale.
--
Steven
From: Steven D'Aprano
On Sat, 23 Jun 2018 17:05:17 -0400, Richard Damon wrote:
> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
>> On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
>>
>>> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
Ok. Here's a value for you:
100ΓΘ¼
[...]
>
From: Richard Damon
On 6/23/18 5:31 PM, Ben Finney wrote:
> Richard Damon writes:
>
>> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> Richard Damon wrote:
>> Data presented to the user should normally use his locale
>> (unless he has spec
From: Ben Finney
Richard Damon writes:
> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
> >> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> >>> Richard Damon wrote:
> >>> > Data presented to the user should normally use his locale
> >>> > (unless he has specified something different).
> >>>
> >>> Ok.
From: Richard Damon
On 6/23/18 11:27 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
>
>> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>>> Ok. Here's a value for you:
>>>
>>> 100ΓΘ¼
>>>
>>> I see '1', '0', '0', 'ΓΘ¼'. What do you see in your locale (LC_MONET
To: Richard Damon
From: r...@zedat.fu-berlin.de (Stefan Ram)
Richard Damon writes:
>Now, if I have a parser that doesn't use the locale, but some other rule
>base than I just need to provide it with the right rules, which is
>basically just defining the right locale.
Here's an example C++ pr
From: "Peter J. Holzer"
--b2wbudmypdkmv7il
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2018-06-23 12:11:34 -0400, Richard Damon wrote:
> On 6/23/18 10:05 AM, Peter J. Holzer wrote:
> > On 2018-06-23 08:41:38 -0400, Richar
From: Richard Damon
On 6/23/18 11:44 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote:
>
>> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>>>
If you know the Locale, then you do know what the decima
From: Richard Damon
On 6/23/18 10:05 AM, Peter J. Holzer wrote:
> On 2018-06-23 08:41:38 -0400, Richard Damon wrote:
>> On 6/23/18 8:28 AM, Peter J. Holzer wrote:
>>> On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> If I'm in Australia, usin
From: "Peter J. Holzer"
--ngg56dmsr6vcxzs5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2018-06-23 12:41:33 -0400, Richard Damon wrote:
> On 6/23/18 11:44 AM, Steven D'Aprano wrote:
> > You're assuming that there will be a
From: Dennis Lee Bieber
On Sat, 23 Jun 2018 15:44:14 + (UTC), Steven D'Aprano
declaimed the following:
>1.234.567,012345678
>
>which is understandable to anyone who is aware of the possibility that
>comma may mean decimal separator and period the thousands separator.
>
Or it is
From: Steven D'Aprano
On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote:
> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>>
>>> If you know the Locale, then you do know what the decimal separator
>>> is, as that is part of what a loc
From: Steven D'Aprano
On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>> Ok. Here's a value for you:
>>
>> 100ΓΘ¼
>>
>> I see '1', '0', '0', 'ΓΘ¼'. What do you see in your locale (LC_MONETARY)?
>
> If I processed that on my system I would
From: "Peter J. Holzer"
--p4u6dkqn7e5fhtwt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2018-06-23 08:41:38 -0400, Richard Damon wrote:
> On 6/23/18 8:28 AM, Peter J. Holzer wrote:
> > On 2018-06-23 08:12:52 -0400, Richard
From: "Peter J. Holzer"
--jbhqoow7s7225t6e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2018-06-23 16:05:49 +0200, Peter J. Holzer wrote:
> I don't think that's a useful way to look at it. "Locale" in
> (non-technical) Eng
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>> Richard Damon :
>>
>>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
I always know my locale. The locale is tied to the human user.
>>> No, it should be tied to the data you are processing.
>
From: Richard Damon
On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> Richard Damon :
>
>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
>>> I always know my locale. The locale is tied to the human user.
>> No, it should be tied to the data you are processing.
>In computing, a locale is a set of parame
From: Richard Damon
On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
> Richard Damon :
>> If you know the Locale, then you do know what the decimal separator
>> is, as that is part of what a locale defines.
> I don't know what that sentence means.
When you set the locale
>
>> The issue is that if you ju
From: Richard Damon
On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>
>> If you know the Locale, then you do know what the decimal separator is,
>> as that is part of what a locale defines.
> A locale defines a set of common cultural conventio
From: Steven D'Aprano
On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
> If you know the Locale, then you do know what the decimal separator is,
> as that is part of what a locale defines.
A locale defines a set of common cultural conventions. It doesn't mandate the
actual conventions i
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
>> I always know my locale. The locale is tied to the human user.
> No, it should be tied to the data you are processing.
In computing, a locale is a set of parameters that defines the user's
From: Richard Damon
On 6/23/18 8:28 AM, Peter J. Holzer wrote:
> On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
>> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
If you know the Locale, then you do know what the decimal separator i
From: "Peter J. Holzer"
--drblskvcly73v23o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> > On Sat, 23 Jun 2018 06:26:22 -0400, R
To: Richard Damon
From: Marko Rauhamaa
Richard Damon :
> If you know the Locale, then you do know what the decimal separator
> is, as that is part of what a locale defines.
I don't know what that sentence means.
> The issue is that if you just know the encoding, you don't necessarily
> know t
From: Steven D'Aprano
On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
> Steven D'Aprano writes:
>
>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>
> The code page remark is curious. Will some "code pages" have digits
> that are not ASCII digits?
Good qu
From: Richard Damon
On 6/22/18 11:21 PM, Steven D'Aprano wrote:
> On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
>
>> Steven D'Aprano writes:
>>
>>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>>
>> The code page remark is curious. Will some "code pages" have digits
To: Steven D'Aprano
From: Ben Bacarisse
Steven D'Aprano writes:
> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>
The code page remark is curious. Will some "code pages" have digits
that are not ASCII digits?
>>>
>>> Good question. I have no idea.
>>
>> It's much more o
On 6/23/18 10:44 PM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 17:52:55 -0400, Richard Damon wrote:
>
>> If you have more than just a number representing a value in the locale
>> currency, you can't ask the locale how to present/accept it.
> You're the only one saying that it has to be handled b
On Sun, Jun 24, 2018 at 1:23 PM, Steven D'Aprano
wrote:
> On Sun, 24 Jun 2018 12:53:49 +1000, Chris Angelico wrote:
>
> [...]
>>> Okay, you want a bit-pattern. In hex:
>>>
>>> '0x313030e282ac'
> [...]
>
>> Hmm. Actually, I'm a bit confused.
>>
> hex("100€".encode())
>> Traceback (most recent c
On Sun, 24 Jun 2018 12:53:49 +1000, Chris Angelico wrote:
[...]
>> Okay, you want a bit-pattern. In hex:
>>
>> '0x313030e282ac'
[...]
> Hmm. Actually, I'm a bit confused.
>
hex("100€".encode())
> Traceback (most recent call last):
> File "", line 1, in
> TypeError: 'bytes' object cannot
On Sun, Jun 24, 2018 at 12:44 PM, Steven D'Aprano
wrote:
> You're joking, right? You can't possibly be so ignorant as to actually
> believe that. You have, right in front of you, a news post or email
> containing the text string "100€", and yet you are writing apparently in
> full seriousness that
On Sat, 23 Jun 2018 17:52:55 -0400, Richard Damon wrote:
> If you have more than just a number representing a value in the locale
> currency, you can't ask the locale how to present/accept it.
You're the only one saying that it has to be handled by the locale.
--
Steven D'Aprano
"Ever since I
On Sat, 23 Jun 2018 17:05:17 -0400, Richard Damon wrote:
> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
>> On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
>>
>>> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
Ok. Here's a value for you:
100€
[...]
> Locale based currency tra
On 6/23/18 5:31 PM, Ben Finney wrote:
> Richard Damon writes:
>
>> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> Richard Damon wrote:
>> Data presented to the user should normally use his locale
>> (unless he has specified something differ
Richard Damon writes:
> On 6/23/18 11:27 AM, Steven D'Aprano wrote:
> >> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> >>> Richard Damon wrote:
> >>> > Data presented to the user should normally use his locale
> >>> > (unless he has specified something different).
> >>>
> >>> Ok. Here's a value for
On 6/23/18 11:27 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
>
>> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>>> Ok. Here's a value for you:
>>>
>>> 100€
>>>
>>> I see '1', '0', '0', '€'. What do you see in your locale (LC_MONETARY)?
>> If I processed th
On 2018-06-23 12:41:33 -0400, Richard Damon wrote:
> On 6/23/18 11:44 AM, Steven D'Aprano wrote:
> > You're assuming that there will be a misinterpretation. That's an absurd
> > assumption to make. There might be, of course, but the documentation for
> > my document might be clear that comma is t
On 2018-06-23 12:11:34 -0400, Richard Damon wrote:
> On 6/23/18 10:05 AM, Peter J. Holzer wrote:
> > On 2018-06-23 08:41:38 -0400, Richard Damon wrote:
> >> Once you open the Locale can of worms, EVERYTHING has a locale, to say
> >> you aren't using a locale is to say you are writing
> >> something
On 6/23/18 11:44 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote:
>
>> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>>>
If you know the Locale, then you do know what the decimal separator
is, a
On 6/23/18 10:05 AM, Peter J. Holzer wrote:
> On 2018-06-23 08:41:38 -0400, Richard Damon wrote:
>> On 6/23/18 8:28 AM, Peter J. Holzer wrote:
>>> On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> If I'm in Australia, using the en-AU locale, ne
On Sat, 23 Jun 2018 08:12:52 -0400, Richard Damon wrote:
> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>>
>>> If you know the Locale, then you do know what the decimal separator
>>> is, as that is part of what a locale defines.
>> A locale
On Sat, 23 Jun 2018 09:42:29 -0400, Richard Damon wrote:
> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>> Ok. Here's a value for you:
>>
>> 100€
>>
>> I see '1', '0', '0', '€'. What do you see in your locale (LC_MONETARY)?
>
> If I processed that on my system I would either get $100, or an err
On 2018-06-23 16:05:49 +0200, Peter J. Holzer wrote:
> I don't think that's a useful way to look at it. "Locale" in
> (non-technical) English means "place" or "site". The idea behind the
> locale concept is that some conventions (e.g. how to write numbers or
> how to write strings) depend on the pl
Richard Damon :
> On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
>> Richard Damon :
>>
>>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
I always know my locale. The locale is tied to the human user.
>>> No, it should be tied to the data you are processing.
>>In computing, a locale is a set of par
On 2018-06-23 08:41:38 -0400, Richard Damon wrote:
> On 6/23/18 8:28 AM, Peter J. Holzer wrote:
> > On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
> >> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> >>> If I'm in Australia, using the en-AU locale, nevertheless I can generate
> >>> a file using ,
On 6/23/18 9:05 AM, Marko Rauhamaa wrote:
> Richard Damon :
>
>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
>>> I always know my locale. The locale is tied to the human user.
>> No, it should be tied to the data you are processing.
>In computing, a locale is a set of parameters that defines the
Richard Damon :
> On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
>> I always know my locale. The locale is tied to the human user.
> No, it should be tied to the data you are processing.
In computing, a locale is a set of parameters that defines the user's
language, region and any special varian
On 6/23/18 8:28 AM, Peter J. Holzer wrote:
> On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
>> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
>>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
If you know the Locale, then you do know what the decimal separator is,
as that is par
On 6/23/18 8:03 AM, Marko Rauhamaa wrote:
> Richard Damon :
>> If you know the Locale, then you do know what the decimal separator
>> is, as that is part of what a locale defines.
> I don't know what that sentence means.
When you set the locale
>
>> The issue is that if you just know the encoding,
On 2018-06-23 08:12:52 -0400, Richard Damon wrote:
> On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> > On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
> >> If you know the Locale, then you do know what the decimal separator is,
> >> as that is part of what a locale defines.
> > A locale defin
On 6/23/18 7:46 AM, Steven D'Aprano wrote:
> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
>
>> If you know the Locale, then you do know what the decimal separator is,
>> as that is part of what a locale defines.
> A locale defines a set of common cultural conventions. It doesn't mandate
Richard Damon :
> If you know the Locale, then you do know what the decimal separator
> is, as that is part of what a locale defines.
I don't know what that sentence means.
> The issue is that if you just know the encoding, you don't necessarily
> know the locale.
I always know my locale. The lo
On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote:
> If you know the Locale, then you do know what the decimal separator is,
> as that is part of what a locale defines.
A locale defines a set of common cultural conventions. It doesn't mandate
the actual conventions in use in any specific d
On 6/22/18 11:21 PM, Steven D'Aprano wrote:
> On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
>
>> Steven D'Aprano writes:
>>
>>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>>
>> The code page remark is curious. Will some "code pages" have digits
>> that are not AS
On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote:
> Steven D'Aprano writes:
>
>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>
> The code page remark is curious. Will some "code pages" have digits
> that are not ASCII digits?
Good question. I have no idea
Steven D'Aprano writes:
> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>
The code page remark is curious. Will some "code pages" have digits
that are not ASCII digits?
>>>
>>> Good question. I have no idea.
>>
>> It's much more of an open question than I thought.
>
> Nah,
On 6/22/18 4:43 AM, Ethan Furman wrote:
> On 06/21/2018 01:20 PM, Ben Bacarisse wrote:
>
>> The code page remark is curious. Will some "code pages" have digits
>> that are not ASCII digits?
>
> Good question. I have no idea. I get the appropriate decoder/encoder
> based on the code page containe
On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote:
>>> The code page remark is curious. Will some "code pages" have digits
>>> that are not ASCII digits?
>>
>> Good question. I have no idea.
>
> It's much more of an open question than I thought.
Nah, Python already solves that for you:
Ethan Furman writes:
> On 06/21/2018 01:20 PM, Ben Bacarisse wrote:
>> You say in a followup that you don't need to worry about digit grouping
>> marks (like thousands separators) so I'm not sure what the problem is.
>> Can't you just replace ',' with '.' a proceed as if you had only one
>> repr
On Fri, 22 Jun 2018 01:43:56 -0700, Ethan Furman wrote:
>> You say in a followup that you don't need to worry about digit grouping
>> marks (like thousands separators) so I'm not sure what the problem is.
>> Can't you just replace ',' with '.' a proceed as if you had only one
>> representation?
>
On 06/21/2018 01:20 PM, Ben Bacarisse wrote:
Ethan Furman writes:
I need to translate numeric data in a string format into a binary
format. I know there are at least two different methods of
representing parts less that 1, such as "10.5" and "10,5". The data
is encoded using code pages, and c
On 21Jun2018 10:12, Ethan Furman wrote:
I need to translate numeric data in a string format into a binary
format. I know there are at least two different methods of
representing parts less that 1, such as "10.5" and "10,5". The data
is encoded using code pages, and can vary depending on the
George Fischhof wrote:
- if you found only one type, then that is the decimal
Only if you're sure that all numbers contain a decimal separator.
Otherwise there's no way to be sure in general.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
Peter Otten <__pete...@web.de> ezt írta (időpont: 2018. jún. 21., Cs,
22:45):
> Ethan Furman wrote:
>
> > I need to translate numeric data in a string format into a binary
> format.
> > I know there are at least two different
> > methods of representing parts less that 1, such as "10.5" and "10,5"
Ethan Furman wrote:
> I need to translate numeric data in a string format into a binary format.
> I know there are at least two different
> methods of representing parts less that 1, such as "10.5" and "10,5". The
> data is encoded using code pages, and can vary depending on the file being
> rea
Ethan Furman writes:
> I need to translate numeric data in a string format into a binary
> format. I know there are at least two different methods of
> representing parts less that 1, such as "10.5" and "10,5". The data
> is encoded using code pages, and can vary depending on the file being
>
On 06/21/2018 12:07 PM, codewiz...@gmail.com wrote:
On Thursday, June 21, 2018 at 1:08:35 PM UTC-4, Ethan Furman wrote:
I need to translate numeric data in a string format into a binary format. I
know there are at least two different
methods of representing parts less that 1, such as "10.5"
On 06/21/2018 10:36 AM, Peter Pearson wrote:
On Thu, 21 Jun 2018 10:12:27 -0700, Ethan Furman wrote:
I need to translate numeric data in a string format into a binary
format. I know there are at least two different methods of
representing parts less that 1, such as "10.5" and "10,5". The data
On Thursday, June 21, 2018 at 1:08:35 PM UTC-4, Ethan Furman wrote:
> I need to translate numeric data in a string format into a binary format. I
> know there are at least two different
> methods of representing parts less that 1, such as "10.5" and "10,5". The
> data is encoded using code pag
On Thu, 21 Jun 2018 10:12:27 -0700, Ethan Furman wrote:
> I need to translate numeric data in a string format into a binary
> format. I know there are at least two different methods of
> representing parts less that 1, such as "10.5" and "10,5". The data
> is encoded using code pages, and can va
I need to translate numeric data in a string format into a binary format. I know there are at least two different
methods of representing parts less that 1, such as "10.5" and "10,5". The data is encoded using code pages, and can
vary depending on the file being read (so I can't rely on current
83 matches
Mail list logo