On Mon, 15 Sep 2014 22:47:32 +0000 Cassio Butrico via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
> > how to transform decial point "3.15" to "3,15" comma? > > > Hello everyone, I am making a registry of real amounts, and need > trasformar fractional numbers, so print correctly. there is some > routine that do this? why don't do just this: void main () { import std.stdio; import std.string; import std.array; string s = "%s".format(3.14).replace(".", ","); writeln(s); } but i believe that separator is locale-dependend, so maybe you should just change locale at program startup?
signature.asc
Description: PGP signature