range(-8.00, 8.00, 0.05) acting very strange

后端 未结 3 457
迷失自我
迷失自我 2021-01-13 17:16

Does anyone know why range(-8.00, 8.00, 0.05) seems fail?

Array
(
[0] => -8
[1] => -7.95
[2] => -7.9
[3] => -7.85
[4] => -7.8
[5] => -7.75
         


        
3条回答
  •  悲&欢浪女
    2021-01-13 17:46

    You may want to try a range between 800 and -800 with steps of 5 and then add in the decimal points / divide by 100 afterward.

提交回复
热议问题