Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco::NumberFormatter:: double

Please post support and help requests here.

Poco::NumberFormatter:: double

Postby stayprivate » 31 May 2013, 21:52

POCO_MAX_FLT_STRING_LEN is defined to be 128 but a double could take a lot more space then 128.


Looking around the web I found this for a definition of max length:

1/*'-'*/ + (DBL_MAX_10_EXP+1)/*308+1 digits*/ + 1/*'.'*/ + 6/*Default? precision*/ + 1/*\0*/DBL_MAX_10_EXP.

In fact on my platform Poco::NumberFormatter::append( str, DBL_MAX) will crash.
stayprivate
 
Posts: 1
Joined: 31 May 2013, 21:28

Re: Poco::NumberFormatter:: double

Postby alex » 02 Jun 2013, 14:27

Thanks, created GitHub issue.
alex
 
Posts: 1103
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron