Finding floating number bugs in open source projects
❖
❖
❖
❖
❖
❖
❖
(1bit)
value = -1 × ( ) × 2
( ) ( )
❖
cent2doller = x => console.log(x * 0.01);
cent2doller(25);
0.25
❖
cent2doller = x => console.log(x * 0.01);
cent2doller(35);
0.35000000000000003
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖ 



❖
❖
❖
❖
❖
❖
❖
❖
❖
0.5
0.49999999999999994
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
❖
浮動小数点数とOSSのバグの話

浮動小数点数とOSSのバグの話