medianfloat component

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
max.tisc
Posts: 55
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 5 times

Flowcode v9 medianfloat component

Post by max.tisc »

Hi everyone
the medianfloat component does not return decimal values ​​but only integers or maybe I didn't fully understand how this should work, I attach a simple test code
happy holidays to everyone
thank's
Attachments
media.fcfx
(8.16 KiB) Downloaded 70 times

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: medianfloat component

Post by Steve-Matrix »

There could be a problem with the component. It does return float values, but only the values entered. It does not return the average of the 2 consecutive median values when there are an even number of samples. Instead, it returns one of those sample values. We will get this fixed.

Your example adds only whole numbers to the list which is why you are only seeing whole numbers being returned.

max.tisc
Posts: 55
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 5 times

Re: medianfloat component

Post by max.tisc »

Ok Steve thank you, something is wrong, the calculations did not return to me, I would also take a look at the other median components, I’m using the 32 bit and it does not seem right.

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: medianfloat component

Post by Steve-Matrix »

I have only tried simulating this component. Does simulation work for you?

Post Reply