🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #1074

Re: Parsowanie stringa.

#1074
From: Piecu
Date: Wed, 05 May 2004 21:54
17 lines
1852 bytes
red napisał(-a):
> To w sumie dziala tak jak chcialem, ale float.Parse() ladnie sobie radzi z
> "1,0", a co jesli chcialbym parsowac "1.0" - to juz sypie mi wyjatkiem.

Pewnie jest zależne od ustawień regionalnych w Windows. W sumie nie wiem 
czy/jak to można zmienić, ale najprościej możesz po prostu pozamieniać 
kropki na przecinki :)
Spróbuj może jeszcze poczytać o innych parametrach metody Parse(), bo 
np. NumberStyles wygląda ciekawie. Ale tu już ci nie pomogę, bo nigdy 
się nie bawiłem.

-- 
  ____  _
|  _ \(_) ___  ___ _   _   piecu(malpka)go2.pl   gg:1277308
| |_) | |/ _ \/ __| | | |  --------------------------------
|  __/| |  __/ (__| |_| |  "jutro to dziś - tyle, że jutro"
|_|   |_|\___|\___|\__,_|       Sławomir Mrożek (1981)
Technical Details
Message-ID: <c7bo13$le4$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.gazeta.pl!wsisiz.edu.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <c7bkma$kva$1@inews.gazeta.pl> <c7bkpr$oji$1@inews.gazeta.pl> <c7bl7g$e2u$1@nemesis.news.tpi.pl> <c7bmp7$bs$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.gazeta.pl!wsisiz.edu.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Piecu <piecu.NIE_...@go2.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: Parsowanie stringa.
Date: Wed, 05 May 2004 23:54:34 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 23
Message-ID: <c7bo13$le4$1@nemesis.news.tpi.pl>
References: <c7bkma$kva$1@inews.gazeta.pl> <c7bkpr$oji$1@inews.gazeta.pl> <c7bl7g$e2u$1@nemesis.news.tpi.pl> <c7bmp7$bs$1@inews.gazeta.pl>
Reply-To: pi...@go2.pl
NNTP-Posting-Host: ya10.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1083794276 21956 80.55.234.10 (5 May 2004 21:57:56 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Wed, 5 May 2004 21:57:56 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040405)
X-Accept-Language: pl, en-us, en
In-Reply-To: <c7bmp7$bs$1@inews.gazeta.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit