NumberFormatter::append broken #80

lucas-clemente opened this Issue Feb 7, 2013 · 1 comment


None yet

2 participants


I'm expecting the following to output "1.00", but it gives "10". Happens only with natural numbers. Looking at the code I think this is due to the conversion not outputting a separator but the padding code expecting one.

#include <iostream>
#include <Poco/NumberFormatter.h>

int main(int argc, const char * argv[]) {
  Poco::NumberFormatter f;
  string s;
  f.append(s, static_cast<double>(1), 2);
  std::cout << s << std::endl; // => 10
  return 0;
@aleks-f aleks-f was assigned Feb 8, 2013
@aleks-f aleks-f added a commit that referenced this issue Feb 8, 2013
@aleks-f aleks-f GH #80: NumberFormatter::append broken
fixed GH #80: NumberFormatter::append broken
aleks-f commented Feb 8, 2013

Fixed for 1.5.2

@aleks-f aleks-f closed this Feb 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment