Home » Community » U++ community news and announcements » U++ 2017 beta
Re: U++ 2017 beta [message #47333 is a reply to message #47151] |
Thu, 05 January 2017 05:01 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
About decimal comma.
Well, in Java world you should always provide also the Locale to be used by the formatter. So then you do thing like str = Format(Locale.US, "%.2f", value) when you are exporting data for machine, or you call with other (none=default) to get formatting for human output, which can include also things like thousands separator/etc (and is not suitable for machine export/import).
Tom1:
BTW, if your OS (GTK) is set to ",", then it sort of does what it should, and I would rather like to see introduction of this Java-like "provide target Locale" logic, than some hardcoded hacks to get "." every time. As when you want to format numbers for your human users, you should follow their OS settings.
I do believe that you can set locale to the "C" even in your source even now (maybe at the start of application, if you don't want to format outputs with default OS settings), to get the printf behaviour with dot. Too lazy to google for some example, sorry.
[Updated on: Thu, 05 January 2017 05:05] Report message to a moderator
|
|
|
|
|
U++ 2017 beta
By: mirek on Thu, 22 December 2016 09:25
|
|
|
Re: U++ 2017 beta
By: MrSarup on Thu, 22 December 2016 20:25
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 22 December 2016 23:00
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 08:02
|
|
|
Re: U++ 2017 beta
By: Klugier on Sun, 25 December 2016 21:29
|
|
|
Re: U++ 2017 beta
By: omari on Mon, 26 December 2016 13:36
|
|
|
Re: U++ 2017 beta
By: mr_ped on Fri, 23 December 2016 04:02
|
|
|
Re: U++ 2017 beta
By: koldo on Fri, 23 December 2016 10:28
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 09:23
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 09:52
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 25 December 2016 10:02
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 25 December 2016 09:52
|
|
|
Re: U++ 2017 beta
By: MrSarup on Sun, 25 December 2016 11:24
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 21:51
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 28 December 2016 13:31
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 28 December 2016 16:53
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 28 December 2016 20:53
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: Klugier on Wed, 28 December 2016 23:15
|
|
|
Re: U++ 2017 beta
By: amrein on Thu, 29 December 2016 08:44
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 21:54
|
|
|
Re: U++ 2017 beta
By: mirek on Sun, 01 January 2017 22:03
|
|
|
Re: U++ 2017 beta
By: MrSarup on Mon, 02 January 2017 06:09
|
|
|
Re: U++ 2017 beta
By: mirek on Mon, 02 January 2017 22:31
|
|
|
Re: U++ 2017 beta
By: mirek on Mon, 02 January 2017 21:42
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: amrein on Tue, 03 January 2017 14:22
|
|
|
Re: U++ 2017 beta
By: mirek on Tue, 03 January 2017 14:59
|
|
|
Re: U++ 2017 beta
By: amrein on Wed, 04 January 2017 01:04
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 07:28
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 07:59
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 08:03
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 08:47
|
|
|
Re: U++ 2017 beta
By: MrSarup on Wed, 04 January 2017 09:00
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 10:28
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 12:32
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 12:38
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 13:20
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 14:39
|
|
|
Re: U++ 2017 beta
By: Tom1 on Wed, 04 January 2017 15:29
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:38
|
|
|
Re: U++ 2017 beta
By: Tom1 on Thu, 05 January 2017 09:17
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 14:49
|
|
|
Re: U++ 2017 beta
|
|
|
Re: U++ 2017 beta
By: mirek on Wed, 04 January 2017 15:47
|
|
|
Re: U++ 2017 beta
By: Klugier on Wed, 04 January 2017 22:32
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:23
|
|
|
Re: U++ 2017 beta
By: mr_ped on Thu, 05 January 2017 05:01
|
|
|
Re: U++ 2017 beta
By: mirek on Thu, 05 January 2017 08:20
|
Goto Forum:
Current Time: Tue May 07 22:36:23 CEST 2024
Total time taken to generate the page: 0.01839 seconds
|