Re: [fpc-pascal] Formatting of JSON float values

2015-12-02 Thread Michael Van Canneyt
On Wed, 2 Dec 2015, Graeme Geldenhuys wrote: On 2015-12-02 18:17, Michael Van Canneyt wrote: No, currently not. The value is formatted in TFloatNumber.GetAsString. Ok, thanks. Second question. What happens to floating points with different locales and decimal separators? eg: USA and UK use

Re: [fpc-pascal] Formatting of JSON float values

2015-12-02 Thread Graeme Geldenhuys
On 2015-12-02 18:17, Michael Van Canneyt wrote: > No, currently not. The value is formatted in TFloatNumber.GetAsString. Ok, thanks. Second question. What happens to floating points with different locales and decimal separators? eg: USA and UK uses a dot (.) as decimal separator, but [odd] countr

Re: [fpc-pascal] Formatting of JSON float values

2015-12-02 Thread Michael Van Canneyt
On Wed, 2 Dec 2015, Graeme Geldenhuys wrote: Hi, I'm storing the following values in a JSON file using values: 23.67, 23.97, 23.87, 10.0 and stored in a JSON object using code as follows: procedure TFPReportStreamer.WriteFloat(AName: String; AValue: Extended); begin CurrentElement.Add(AN

[fpc-pascal] Formatting of JSON float values

2015-12-02 Thread Graeme Geldenhuys
Hi, I'm storing the following values in a JSON file using values: 23.67, 23.97, 23.87, 10.0 and stored in a JSON object using code as follows: procedure TFPReportStreamer.WriteFloat(AName: String; AValue: Extended); begin CurrentElement.Add(AName, AValue); end; When it is written I see th