Aller au contenu principal

Recherche

Recherche

Using Round() Instead Of Decimal()

Commentaires

2 commentaires

  • Avatar
    Ian Cummings
    Modérateur
    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

Vous devez vous connecter pour laisser un commentaire.