3

I try to format numeric field

select to_char(12315.83453, 'FM999999999999D9999')

in this case all its OK. Result is 12315.8345

But if value is between 0 and 1

select to_char(0.83453, 'FM999999999999D9999')

result is .8345 without 0 (zero) but I need 0.8345.

What kind of format should be indicate to to_char function to obtain result what I need?

1 Answer 1

5
SELECT to_char(0.83453, 'FM999999999990D9999');

I just changed the 9 before format D to 0.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.