Change culture of number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Ross
    New Member
    • Jan 2007
    • 119

    Change culture of number

    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.
  • Bob Ross
    New Member
    • Jan 2007
    • 119

    #2
    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.

    Comment

    • Bob Ross
      New Member
      • Jan 2007
      • 119

      #3
      Can anyone help with this?

      Comment

      Working...