Fix float data conversion to string (backward compatibility) #1631

Merged
merged 2 commits into from Dec 18, 2012

2 participants

@strk

Fixes precision digits, closing #430
Also avoids forcing a trailing '.0', closing #1627

Compatibility is still not 100% matching 2.0.x because in two cases:

  • Scientific notation is never used
  • Decimal digits after 16th are not printed

See http://strk.keybit.net/tmp/report_full.txt

@strk strk Fix float data conversion to string
Fixes precision digits, closing #430
Also avoids forcing a trailing '.0', closing #1627
19522ac
@strk strk Implement scientific notation for double-to-string
Also fixes tests for 1e5 expecting fixed precision rather than
scientific notation (stringstream gives scientific notation indeed)

The only still failing test now is the one having less than 16
significant digits of precision, due to the boost bug:
https://svn.boost.org/trac/boost/ticket/7785
17dd295
@artemp artemp merged commit 2fb39d2 into mapnik:2.1.x Dec 18, 2012

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment