I need to generate a large array of numbers ranging from 0.00 to say 10000000.00
i.e
0.01
0.02
0.03
…
1.51
1.52
1.583
… etc
After looking around, I tried this answer which works fine for integers but however not working for decimals
I need to generate a large array of numbers ranging from 0.00 to say 10000000.00
i.e
0.01
0.02
0.03
…
1.51
1.52
1.583
… etc
After looking around, I tried this answer which works fine for integers but however not working for decimals
4
Answers
You didn’t specify a language, so I will use Python.
A simple way, try this:
With this code, you will get an array of the numbers described in the question, after the dot there will be 2 numbers: 0.00, 0.01 and so on.
Try the following