Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cfa209bbe4021103b1018638b3e12a33c97f2c76
Ticket: e7c21ed67892fa2c8f741b3350f8dbdbd83fa19c
entier() fails to canonicalize result
User & Date: aspect on 2017-04-29 03:46:00
Changes

  1. icomment:
    I'm not convinced that it should.  I think there's a case either way .. does it make a difference for quadcode?
    
    See also:
    
    % tcl::mathfunc::entier 0x2
    0x2
    % ::tcl::mathfunc::round 0x2
    0x2
    % ::tcl::mathfunc::abs 0x2
    0x2
    % ::tcl::mathfunc::abs 00.02
    00.02
    % ::tcl::mathfunc::max 0x2
    0x2
    % ::tcl::mathfunc::min 0x2
    0x2
    
    % ::tcl::mathfunc::int 0x2
    2
    % ::tcl::mathfunc::wide 0x2
    2
    
    arguably, wide() and int() are missing an optimisation here.
    
    With -DACCEPT_NAN, most floating mathfuncs are also identity for non-canonical NaNs.
    
  2. login: "aspect"
  3. mimetype: "text/plain"