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?
@asez73 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi @Gordon,
While trying to do some statistics, I found that situation on a v2.00 upgrade Pico:
However, using the test box in the mozilla page, I got
which once run showed:
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?