Skip to content
Tcl Source Code View Ticket
Login

View Ticket

format command failed

Closed / Invalid218437ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:35
OriginalBugID: 6173 Bug
Version: 8.3
SubmitDate: '2000-08-25'
LastModified: '2000-09-05'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: solaris2.5.1 & solaris2.6
Machine: Sun sparc Ultra-Enterprise server
FixedDate: '2000-10-25'
ClosedDate: '2000-09-05'


Name:
Luke Yang

ReproducibleScript:
Includeing the tcl package as a build-in interpreter in my MT application, 
for some reason I don't know, the tcl format command return error as :

ObservedBehavior:
for some reason I don't know, the tcl format command return error as :

%%%> format { %6f } 10
unknown floating-point error, errno = 2

I don't know why I got errno 2. I checked the source code about the format.
It actually called the strtod(3c) to do the conversion. There is no applicable to return one errer as errno = 2.

DesiredBehavior:
Should not get this error



This looks like it is related to how Tcl is embedded, as the same
problem is not encountered in a standard build of Tcl on the noted
platforms. 
-- 09/05/2000 hobbs
welch Closed ticket [218437ffff]. [History diff]2000-10-26 08:22:15
dgp Ticket [218437ffff]: 4 changes [History diff]2001-04-20 02:05:59
Log in (anonymous is fine) to add a comment.