Re: [sqlite] Decimal separator

2006-02-01 Thread Arjen Markus
Carl Jacobs wrote: > > > > All would be fine but look at this : > > > > > > create table test( > > > price double, > > > amount double default 0 > > > ); > > > > > > insert into test(price) values("12,0"); > > > > > > amount now = 0.0 > > The world seems to have settled on using Arabic numerals

Re: [sqlite] Decimal separator

2006-01-31 Thread Marian Olteanu
The localization problem is a complex problem. Indeed, any big database system _should_ implement it. And yes, it can be implemented in sqlite, and it can be activated through a PRAGMA directive. But implementing it into sqlite (localization is not limited to numbers) would increase the size

Re: [sqlite] Decimal separator

2006-01-31 Thread drh
Bert Verhees <[EMAIL PROTECTED]> wrote: > It is only the English speaking part of the world using Arabic numerals > is a '.', which is a minority > The rest uses a ',' > SQLite uses "." as the radix point always. This is by design. It used to use the locale specific radix point, but that led

Re: [sqlite] Decimal separator

2006-01-31 Thread Bert Verhees
Will Leshner wrote: On Jan 31, 2006, at 1:42 PM, Bert Verhees wrote: It is only the English speaking part of the world using Arabic numerals is a '.', And the Japanese speaking world :) Yuo are right, and the South American speaking Spanish also But the South American speaking

Re: [sqlite] Decimal separator

2006-01-31 Thread Will Leshner
On Jan 31, 2006, at 1:42 PM, Bert Verhees wrote: It is only the English speaking part of the world using Arabic numerals is a '.', And the Japanese speaking world :) -- REALbasic news and tips: http://rbgazette.com KidzMail & KidzBlog: http://haranbanjo.com

Re: [sqlite] Decimal separator

2006-01-31 Thread Bogusław Brandys
Bert Verhees wrote: Carl Jacobs wrote: All would be fine but look at this : create table test( price double, amount double default 0 ); insert into test(price) values("12,0"); amount now = 0.0 The world seems to have settled on using Arabic numerals 0, 1, 2 ... 9. I think we should

Re: [sqlite] Decimal separator

2006-01-31 Thread Bert Verhees
Carl Jacobs wrote: All would be fine but look at this : create table test( price double, amount double default 0 ); insert into test(price) values("12,0"); amount now = 0.0 The world seems to have settled on using Arabic numerals 0, 1, 2 ... 9. I think we should think about settling

Re: [sqlite] Decimal separator

2006-01-31 Thread Carl Jacobs
> > All would be fine but look at this : > > > > create table test( > > price double, > > amount double default 0 > > ); > > > > insert into test(price) values("12,0"); > > > > amount now = 0.0 The world seems to have settled on using Arabic numerals 0, 1, 2 ... 9. I think we should think about

Re: [sqlite] Decimal separator

2006-01-31 Thread Paul Tomblin
Quoting Bogus?aw Brandys ([EMAIL PROTECTED]): > All would be fine but look at this : > > create table test( > price double, > amount double default 0 > ); > > > insert into test(price) values("12,0"); > > amount now = 0.0 Let's see - you insert 12,0 in the column "price", and you're

Re: [sqlite] Decimal separator

2006-01-31 Thread Bogusław Brandys
Bogusław Brandys wrote: Bogusław Brandys wrote: Hello, Maybe someone could explain me how to properly store float/decimal values into sqlite 3.X database ? I created test table: create table test(number double); insert into test(number) values(11); Now it looks like: 11.0 so, '.'

Re: [sqlite] Decimal separator

2006-01-31 Thread Robert Simpson
- Original Message - From: "Bogusław_Brandys" <[EMAIL PROTECTED]> Hello, Maybe someone could explain me how to properly store float/decimal values into sqlite 3.X database ? I created test table: create table test(number double); insert into test(number) values(11); Now it looks

Re: [sqlite] Decimal separator

2006-01-31 Thread Bogusław Brandys
Bogusław Brandys wrote: Hello, Maybe someone could explain me how to properly store float/decimal values into sqlite 3.X database ? I created test table: create table test(number double); insert into test(number) values(11); Now it looks like: 11.0 so, '.' seems to be always decimal

[sqlite] Decimal separator

2006-01-31 Thread Bogusław Brandys
Hello, Maybe someone could explain me how to properly store float/decimal values into sqlite 3.X database ? I created test table: create table test(number double); insert into test(number) values(11); Now it looks like: 11.0 so, '.' seems to be always decimal separator. But under my