KB-36672: Rounding decimal places when saving values in a Database.

Question:

How can I round the decimal places of the variables’ values when saving them in a Database?

Solution:

This is not recommended, but if you want to do it, first you must configure the variable as Double in the Historic. Then, you must set the number of decimal places by using the VBScript’s Round function. For example:

Round ( Variable , Number of decimal places )

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *