Extract the sign bit from a zero float?

Is it possible in q to extract the sign bit from a zero float? signum returns 0 for both 0 and -0.

Thanks!

Yes, see the signed zero wiki page [1] for more info on its properties.q)signum%[1;0f]1iq)signum%[1;-0f]-1i[1] https://en.wikipedia.org/wiki/Signed\_zeroJoshOn 25 July 2015 15:55 UTC, Donovan Hide wrote:> Is it possible in q to extract the sign bit from a zero float? signum > returns 0 for both 0 and -0.>> Thanks!

Brilliant, thanks Josh!