Hey everyone,

is this the most efficient way to round a decimal number to two decimal places?

txtXaxis.Text = String.Format("{0:F2}", A); //show 2 decimal places
            txtYaxis.Text = String.Format("{0:F2}", V); //show 2 decimal places

thanks!

Yes

thanks

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.