You are on page 1of 1

C:\Documents and Settings\Administrator\My ... 2008\Projects\VTCClass\VTCClass\Form1.cs using using using using using using using using System; System.Collections.

Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms;

namespace VTCClass { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

private void buttonClick_Click(object sender, EventArgs e) { //int x = 3; //buttonClick.Text = Convert.ToString(x);

int x = 40000; buttonClick.Text = x.ToString("n1"); //gde n oznacava konvertovanje u hiljadarke // a broj 1 iza n oznacava jedno mesto u decimali // rezultat bi dakle bio 40,000.0

/* * C * P * N * F * D * E * G */

or or or or or or or

c p n f d e g

Currency Percent Thousands separator Decimal with specified decimal places Integer with specified digits Exponential notation Decimal or exponential notation whichever is more compact

} } }

You might also like