SyntaxFix
Write A Post
Hire A Developer
Questions
Try this to avoid to_char limitations:
SELECT regexp_replace(regexp_replace(n,'^-\'||s,'-0'||s),'^\'||s,'0'||s) FROM (SELECT -0.89 n,RTrim(1/2,5) s FROM dual);