I am trying to add decimals on whole number with below formula but doesnt seem to be working.
Number = Cdbl(String.Format(“{0:0.00}”,Number)
Number value is saved as Double
Few examples:
Input Output
100 100.00
155 155.00
278.91 278.91
Thanks @ghazanfar, you solution worked. Only thing I was doing differently is saving Number variable in existing number variable (Double) after adding decimal. In your solution, you saved updated value in h(String) variable.
Thanks for your help.