Format of number

  • Hi,

    When I run the following part of code - Which works out a weekly rent from a monthly one

    WHEN Loc.[rent-group] = 'F' THEN COALESCE(ARENT.[NET-AMT]*12/52,0) /*To work out weekly rent on monthly run*/

    I'm getting the result coming back as "114.230769" as an example.

    How do I get it to come back as - "114.23"?

    Thanks

  • WHEN Loc.[rent-group] = 'F' THEN COALESCE(CAST(ARENT.[NET-AMT]*12/52 AS DECIMAL(10, 2)),0) /*To work out weekly rent on monthly run*/

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • Thank you very much. Just what I was after.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply