Saltar al contenido principal

Búsqueda

Búsqueda

Using Round() Instead Of Decimal()

Comentarios

2 comentarios

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

Iniciar sesión para dejar un comentario.