Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1b1ff01ceababcf8d67b6e67e7f3356dfedad6e322dcce0b161c020f31e7b17c
Ticket: 98006f00ac471be55d983d6a42606abc38f1d809
tcl::mathfunc::isunordered inconsistency with some integer values
User & Date: juliannoble2 on 2024-12-27 02:13:41
Changes

  1. comment changed to:
    Tested on various windows builds only.
    
    isunordered unexpectedly returns 1 for a range of negative values when they are expressed in integer form. 
    
    I'm not sure of the usecase for negative values here, but it doesn't seem to match the documentation as they should be promotable to floats, and as neither argument is NaN - the 1 returns are unexpected.
    
    %tcl::mathfunc::isunordered 1 -1.0
    0
    %tcl::mathfunc::isunordered 1 -1
    1
    
    This occurs for negative values expressed in integer form up to negative 2**52
    for numbers below that - we again get a zero result.
    
    %tcl::mathfunc::isunordered 1 -4503599627370495
    1
    %tcl::mathfunc::isunordered 1 -4503599627370496
    0
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"