My objective is to have a 2d array [3,4] which takes in 12 values of doubles. I then want the programme to round the values to the nearest whole number and then store these in a new array. When i seem to try this it is just storing the unrounded input values instead of the rounded values in the new array

Any help would be appreciated.

Thanks

A bit of your code could help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.