RTRIM scans a text expression from right to left and removes all the characters that match the characters in the trim expression, until it finds an unmatched character. The data type of the return value is the same as the original text.
CHAR | NCHAR | VARCHAR2 | NVARCHAR2
RTRIM(char [, set ])
char is the text expression to be trimmed.
set is a text expression with the characters to remove. The default value of
set is a single blank.
RTRIM('You did that!?!?!?!', '?!') returns the value
You did that.
RTRIM('3.14848', '84') returns the text value