vbscript - Convert Exponential value to Decimal -


any idea how convert exponential value decimal value. have below code returns 1.00000000000051e-02 display 0.01 (100-99.99)

dim total dim pct  total = 99.99  pct=(100-total)  msgbox pct 

use round function:

dim total dim pct  total = 99.99 pct = round(100-total, 2)  msgbox pct 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -