I want to create a For-loop that add values to a list from 0.1 to 0.9. I did the following:
final List<double> speechRateValues = [];
for (int j = 0; j < 10; j++) {
double value = 0.1 * j;
speechRateValues.add(value);
}
The problem is that my list is:
Is it possible to the 0.3000000... be just 0.3, and so on? I'm doing something wrong?