Hello I have finished coding an assignment and I am just having a frustrating problem getting my double whole values to be displayed as int values.
For example:
I have to print the values in a table format of a equation x, y
so say I had the range -1 to 1 my table, with 5 points would be
x \ y
-1 2.122 (These (Y) don't matter as they are always double values)
-.5 3.022
0 4.043
.5 5.342
1 6.140
My problem is that for my x values I get
x \ y
-1.0 2.122
-.5 3.022
-0.0 4.043
.5 5.342
1.0 6.140
The int values still display as doubles, and the 0 is even displayed as negative 0.