Adding two currency fields

  • trying to add two currency textboxes as below but wanted to display with decimals. what to replace int with and also in the format below. Any suggestion?

    = int(ReportItems!textbox15.Value) + int(ReportItems!textbox28.Value)

    $2,135,397.44 (textbox15) + $7,232,950.96(textbox28) =$9,368,348.40

    Expecting the value in the above pattern

  • why are you casting them as int? int stands for integer meaning the conversion truncates your decimal places. just get rid of the int() then format the text box where the formula is to currency.

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

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