跳到主内容

搜索

搜索

Using Round() Instead Of Decimal()

评论

2 条评论

  • Avatar
    Ian Cummings
    版主
    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

请先登录再写评论。