473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Change culture of number

Bob Ross
119 100+
I am using VB.Net (.Net version 2) to create a web application.

I have several pages showing numeric results that can be in the form -
"< 0.01"
"1.345345"
"1,3424.06"
etc...

I was wondering what the easiest way would be to change these results to other culture formats e.g.
"1.2" could become "1,2" for countries that use a comma instead of a period.

Is there an easy way to this for all types of numbers? So what ever type of number I pass in it will correct all culture variations.
May 12 '08 #1
2 1070
Bob Ross
119 100+
Just to add -
Ideally I would like to create function that accepts a number of any type (int, decimal, etc...) and outputs the number but with all culture format changes applied.
May 12 '08 #2
Bob Ross
119 100+
Can anyone help with this?
May 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: karen.mcdonagh | last post by:
Hi, I have generated resource files for a different language and generated a satellite assembly for it, signed it and placed it in the GAC. When I change the UI culture within the code the...
0
by: William Stacey [MVP] | last post by:
Couple questions. Say we are talking about native types such as int, decimal, long, etc. 1) Does XmlSerializer use Invariant culture to serialize and deserialize number types? 2) If wanted to do...
1
by: Manu | last post by:
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. Thread.CurrentThread.CurrentCulture = objCulture...
3
by: gh0st54 | last post by:
Hi I have created a custom web control wich uses a couple of labels, txtbox and calendars I can change the culture of the txt and lbl no problem , how can I do the same for the calendars ? ...
4
by: Shapper | last post by:
Hello, I have this image in my HTML code: <img src="images/en-US/myImage.jpg" /> I want to change the URL using the value of a Session variable. <img src="images/ Session("culture") Value...
2
by: Pieter | last post by:
Hi, I'm using the Settings.settings of VB.NET to define a Connectionstring (Scope = application). When I deploy the Solution, and change this Setting in the app.config-file, it seems that...
0
by: =?Utf-8?B?RW1pbA==?= | last post by:
Hi all, I’m very very new in C#/WPF world, but this fascinates me more and more. Now I must find a way how our future application will use the localization / globalization. I did all the steps...
1
by: Marin | last post by:
I have some Calendar controls on my asp.net page. My computer (localhost) and my server is in Croatia, Europe. So calendar control have day in week and month caption on Croatian language. I want to...
6
by: Tony | last post by:
Hello! My first question: I just can't figure out what is the usefulness of Comparer.Default.Compare(somestring1, somestring2); because I can just the same use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.