Subject:
|
Re: Delphi and decimal signs.
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 20 Aug 2001 18:54:20 GMT
|
Viewed:
|
445 times
|
| |
| |
Tore Eriksson wrote:
> Look at following Delphi code:
> s: string;
> f: double;
> i: Integer;
> begin
> f := 3.14; // correct
> f := 3,14; // error (of course...)
> f := StrToFloat('3.14'); // error
> f := StrToFloat('3,14'); // correct
> s := FloatToStr(3.14); // s is assigned '3,14'
>
> Is it the same with an English/American version of Windows and default
national settings?
f := 3.14; // correct
f := 3,14; // error
f := StrToFloat('3.14'); // correct
f := StrToFloat('3,14'); // error
s := FloatToStr(3.14); // s is assigned '3.14'
-Gary
|
|
Message has 1 Reply:
Message is in Reply To:
| | Delphi and decimal signs.
|
| Look at following Delphi code: s: string; f: double; i: Integer; begin f := 3.14; // correct f := 3,14; // error (of course...) f := StrToFloat('3.14'); // error f := StrToFloat('3,14'); // correct s := FloatToStr(3.14); // s is assigned '3,14' Is (...) (23 years ago, 20-Aug-01, to lugnet.cad.dev)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|