How to Round a Variable by 2 Decimal digits
-
Like I have a Variable on Chart which is Fixed for a day but since Its Calculated so it has Decimal Digits which i want to save only 2 Decimal Digits. How can I do it.
-
OK I have Used a Multiplication factor instead of Division so its Done temporarily
-
@mee-air
To avoid bugs of extra digits appearing, I usually do that : https://fxdreema.com/shared/HhvxtRfyb -
@seb-0 Thanks I will try to use it. b_var and a_var are what here can they be same. like I hvae a variable which i want to round off to 2 digits so can I use same var in this syntax or I have to create another one and use my intended to round one as a_var and use b_var to replace the old one.
Its too jumbled this way I hope you can understand
-
@mee-air
a_var is the variable you need to round, b_var is the variable that will take this rounded value. Use this formula in your project and just replace the variables with the two of you project. Write their name instead.
Or you can transform the variable it self a_var to a rounded value, then replace b_var with a_var.
It is actually very simple.