Beug?

#1

Hello

I have something strange with list.uniqueItems
thinking it is a bug…
there is no way to have a normal result on this code block

#2

What is generating the number? Sometimes rounding makes them appear the same but actually they are not for items like points or point coordinates.

2 Likes
#3

Hi @Lalicorne

Try converting it to integer and see if that makes any difference. You can add this inside code block to convert to integer:

n:int[]

#4

You can also use a Math.Round function to ensure that the values are ‘cut off’ at a reasonable degree of precision.

2 Likes
#5

it’s a .X coordinates from points
still not working with an int64

#6

working fine now…
thanks a lot !
don’t understand why math.floor didn’t worked…

.

#7

It didn’t work because your value was rounding up initially, but down with floor.