Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-07-11
15:00 • Closed ticket [26af9ca4f3]: unexpected infinity result for small number with hig... artifact: 5c87578e91 user: jan.nijtmans
12:55 • New ticket [26af9ca4f3]. artifact: 77dbb3d31d user: tzwaenn

unexpected infinity result for small number with high precision

Closed / Duplicate26af9ca4f366a12a211ca726e0083348e90e4ebaCreated 1 year agoUpdated 1 year ago
Descriptionplain2025-07-11 12:55:41
It seems some overflow in digits after the . leads to the number being interpreted as infinity.
tclsh> expr 1.[string repeat 1 511]
1.1111111111111112
tclsh> expr 1.[string repeat 1 512]
Inf
jan.nijtmanswiki2025-07-11 15:00:24

Dup of [42d14c495a096159]

This should be fixed in 9.0.2+ already, but not yet in Tcl 8.6.16

Log in (anonymous is fine) to add a comment.