End cap placement based on copy count how to limit decimal points

copies count adds fraction based on the scale tool position. this is a problem when I want to place and end cap at the end of the segments, as in endcap Y position = segment copies * segment width. I am probably missing something simple. I tried to call the copies in a custom attribute and then limit decimal points but cant figure it out