DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Formating numbers

  1. #1
    Join Date
    Dec 2005
    Posts
    14

    Formating numbers

    Hi,

    I want to round up number to three decimal places.

    I tried

    trunc(x,3)

    but it failed when trunc(52.5) = 52.5 and I wanted 52.500

    I think I should use to_char(x,9999.999) but wait may be the numbers invlove will be very small or it could be really large so do you think I should use

    t0_char(x,999999999999999.999) or is there any other good idea????


    Thanks,

  2. #2
    Join Date
    May 2002
    Posts
    2,645

  3. #3
    Join Date
    Feb 2007
    Posts
    212
    use round() function instead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width