I need to make a for loop that increments by .1 from 0 to 1.4 however when I do this it creates 1.0000001 I know I need to make an assignment operator happen somewhere in my code but I don't know where and how it should be used.
for ( float m = 0; m < 1.5; m += 0.1 )
System.out.print(m + " ");
my result is:
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.70000005 0.8000001 0.9000001 1.0000001 1.1000001 1.2000002 1.3000002 1.4000002
Your code is fine. This is due to the way floating-point numbers are represented in Java (which is the same way they're represented in just about every language, according to the IEEE standard). You can learn more by googling floating-point representation, and reading a few papers that will come up.
If you want to mask this in your output, you should look at the tools for output formatting. This shows you that you should be careful about equality of floating-point numbers (in any language). Two routes to apparently the same number can produce slight differences. The way to compare equality of floats is to define a, acceptable level of precision - for example 0.000001 - and check whether the absolute value of the difference between the two numbers is less than that number.
I'm not sure how the assignment was stated exactly, but you might try changing the for loop to go from 10 to 150 by the appropriate step size, then dividing the result as appropriate to get the desired output. Then think about why that makes a difference, if it does.