Results 1 to 2 of 2

Thread: Decimal seperator

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    20

    Decimal seperator

    Hi,

    I'm in a norwegian computer and we use a comma as our decimal seperator, however I need StreamWriter to use a dot instead when I write to a file. I'm outputting some data to a CSV file and the comma on float numbers messes up the fields in the CSV.

    Is there any easy way to change the decimal seperator? I can't change the CSV seperator, it has to be a comma.

  2. #2
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    Re: Decimal seperator

    You could try this

    Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator = "."
    Last edited by RohanWest; Apr 4th, 2007 at 07:24 PM.
    You dont need eyes to see, you need vision.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width