I believe it’s returning the value of the 90th percentile.
To check if it’s in the 90th percentile you can check if your value is lower than the value the percentile returns.
Here’s an example
ifelse(firstValue({queue_duration},[{queue_duration} ASC],[{queue_duration}]) < percentile({queue_duration},90),'90','not')