Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFormatter::append broken #80

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

NumberFormatter::append broken #80

lucas-clemente opened this issue Feb 7, 2013 · 1 comment
Assignees
Milestone

Comments

@lucas-clemente
Copy link
Contributor

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;
}
@ghost ghost assigned aleks-f Feb 8, 2013
aleks-f added a commit that referenced this issue Feb 8, 2013
fixed GH #80: NumberFormatter::append broken
@aleks-f
Copy link
Member

aleks-f commented Feb 8, 2013

Fixed for 1.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants