Need clarification on how to extract or compare numeric valuesenclosed in jsonb - Mailing list pgsql-docs

From PG Doc comments form
Subject Need clarification on how to extract or compare numeric valuesenclosed in jsonb
Date
Msg-id 154524917709.15411.10770964720458372337@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Need clarification on how to extract or compare numeric valuesenclosed in jsonb  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/functions-json.html
Description:

A really strange behavior has been noticed when trying to extract numeric
key value from jsonb and compare it to a number
https://stackoverflow.com/questions/53841916/how-to-compare-numeric-in-postgresql-jsonb
The question is: what is the recommended (or fastest) way to do this kind of
comparisons?
The question has arisen because the way postgres processes the mentioned
comparisons is not clear, even though I've read the documentation
carefully.
Thank you!

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error in example
Next
From: antonov@stdpr.ru
Date:
Subject: "$user" and SESSION_USER and CURRENT_USER