Rounding of double value VB.net -


when execute following code variable avg stores 78.8751432..

tot = val(txttot1.text) + val(txttot2.text) + val(txttot3.text) + val(txttot4.text) + val(txttot5.text) + val(txttot6.text) + val(txttot7.text) + val(txttot8.text) avg = tot / pcount lblcrtot.text = tot lblcravg.text = avg 

i need round of value 78.875

i tried out math.round(3, avg) didn't work.

i need suggestions

you need switch arguments math.round()

math.round(tot, 3) 

http://msdn.microsoft.com/en-us/library/system.math.round.aspx


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -