# HG changeset patch # User Santeri Piippo # Date 1363709677 -7200 # Node ID ac7779339b01471ff3b9f2450d14830fffbdf4e9 # Parent 2b0569fee5ad310639162c19ed473a3923dcbebd ftoa: don't limit the amount of decimals diff -r 2b0569fee5ad -r ac7779339b01 misc.cpp --- a/misc.cpp Tue Mar 19 18:12:39 2013 +0200 +++ b/misc.cpp Tue Mar 19 18:14:37 2013 +0200 @@ -72,7 +72,7 @@ // turn into anything weird (like commas) setlocale (LC_NUMERIC, "C"); - str zRep = str::mkfmt ("%.3f", fCoord); + str zRep = str::mkfmt ("%.6f", fCoord); // Remove trailing zeroes while (zRep[~zRep - 1] == '0')