Skip to content
Tcl Source Code View Ticket
Login

View Ticket

parse-error with long integers

Closed / Fixed1451233fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-03-16 12:40:52
% expr 1000000000000000000042
1000000000000000000002

Here, one digit is misread as '0' !

further experimentation:
  for any decimal number that exceeds the 
  64bit range, every non-zero-digit after
  the first 20 digits that immediately
  follows a sequence of 8 or more zero-
  digits is misread as zero.

% expr 100000000000000000000420000000042
100000000000000000000020000000002
% expr 100000000000000000000020000000002
100000000000000000000000000000000
%
avl42 Ticket [1451233fff]: 1 change [History diff]2006-03-16 19:41:37
dgp Ticket [1451233fff]: 1 change [History diff]2006-03-22 00:55:42
dgpplain2006-03-22 03:14:52
Logged In: YES 
user_id=80530


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