Hello friends,
i'm new to this forum and my doubt is
i'm having three text box and say for eg.
textbox1.text,
textbox2.text,
textbox3.text. and we are giving 4.52 and 8.76 as input in textbox 1 and 2 respectively
the actual output we obtain is 39.5952, but i should get it as 39.59(only two digits after decimal point and no rounding) in textbox3

Please reply if you know the answer


Thanks in advance!..
Subulesnar

this should work.

dim i as decimal
ctype(textbox.text, decimal)
math.round(i,2)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.