Skip to main content

Search

Search

Using Round() Instead Of Decimal()

Comments

2 comments

  • Avatar
    Ian Cummings
    Moderator
    If you want a number formatted to two decimal places they you should use a VB script to accomplish this.

    With a number of some sort in the data source click on the "More Options" button, select the "VB Scripting" tab and then edit the "OnProcessData" event script with something like the below.

    [code]value = FormatNumber(value,2)[/code]
    -1
  • Avatar
    Legacy Poster
    [quote name='Ian C - Seagull Support' timestamp='1323710194' post='1298']
    If you want a number formatted to two decimal places they you should use a VB script to accomplish this.

    With a number of some sort in the data source click on the "More Options" button, select the "VB Scripting" tab and then edit the "OnProcessData" event script with something like the below.

    [code]value = FormatNumber(value,2)[/code]
    [/quote]
    Ian thanks a lot. Its working by replacing round() with FormatNumber()
    0

Please sign in to leave a comment.