Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
How to use two parameter in Standard Numeric Format Strings
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
prince raj
10y
754
1
Reply
Hi,
i have double variable (that contain amount in rupees)
Double d = 50000.65487;
Now i need this in below string format
50,000 (i mean with Group separators and removing removing . (.65487)).
CultureInfo ci = new CultureInfo("en-us");
lbl_interest.Text = d.ToString("F0", ci);
output -> 50000 (removed floating point)
lbl_interest.Text = d.ToString("N", ci);
output -> 50,000.65487 (With Grouping)
Now i want to make combination of both, so how can i ?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Adding items to comboBox at runtime C# windows application
How to prepare a Design Document and what are the procedure