List Manipulation

List Manipulation

avinash00002002
Collaborator Collaborator
269 Views
20 Replies
Message 1 of 21

List Manipulation

avinash00002002
Collaborator
Collaborator

Hi!

 

I have some lists one of them I am putting here for help.

 

original

(25 299.4 100.3 100.8 399.3 118.9 25)

 

convert to 0.5  precision

(25.0 299.5 100.5 101.0 399.5 119.0 25.0)

 

I want to convert to 0.5 but the total of all members in a list is 1069.5 but I need to convert in 1070.

final summation of list members shall be 0.0 not .5 

 

Thanks,

avinash

0 Likes
270 Views
20 Replies
Replies (20)
Message 21 of 21

Kent1Cooper
Consultant
Consultant

@avinash00002002 wrote:

... summation of list of members are 0.0 it will also adjust members value.


If the members of the list are all rounded to the nearest 0.5, and if the summation of those members comes to a xx.5 value, by what standard should it decide which of the members to adjust to make the summation to the nearest 0.0 [whole number]?  Presumably it would adjust only one, whether up or down, but there must be a determination of which one.

Kent Cooper, AIA
0 Likes