On Tue, 12 Mar 2019 16:08:24 +0000
Alexandre Billon <[email protected]> wrote:

> 1st question : Is there a way to tell printf() to display the decimal
> separator set in the OS ?
> 
> For example, the decimal separator in my OS is set to comma (,), I
> would like printf() to display the comma as the decimal separator.

You may want to return the value in native form and use your C library
to format it.  Posix defines the single-quote character as a modifier
that does just what you want:


         ''' (apostrophe)
        Decimal conversions (d, u, or i) or the integral portion of a
        floating point conversion (f or F) should be grouped and
        separated by thousands using the non-monetary separator
        returned by localeconv(3).

--jkl
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to