You are reading a single comment by @asez73 and its replies. Click here to read the full conversation.
  • Hi @Gordon,

    While trying to do some statistics, I found that situation on a v2.00 upgrade Pico:

    >var tab1mAlpha = new Array( 0.05, 0.1, 0.2, 0.3, 0.5, 0.7, 0.8, 0.9, 0.95, 0.99, 0.999);
    =[ 0.05, 0.1, 0.2, 0.3, 0.5, 0.7, 0.8, 0.9, 0.95, 0.99, 0.999 ]
    >console.log(tab1mAlpha.indexOf(v))
    -1
    =undefined
    >v
    =0.95
    >typeof v
    ="number"
    

    However, using the test box in the mozilla page, I got

    var tab1mAlpha= [0.05, 0.1, 0.2, 0.3, 0.5, 0.7, 0.8, 0.9, 0.95, 0.99, 0.999];
    var v=1-0.05;
    console.log(tab1mAlpha.indexOf(v));
    console.log(typeof v);
    

    which once run showed:

    > 8
    > "number"
    

    So, is this a bug or I am not understanding something?

    P.S.: Should I report this type of problem on the forum or in github?

About

Avatar for asez73 @asez73 started