Subject:
|
Re: number notation in official parts
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 12 Mar 2010 22:44:40 GMT
|
Viewed:
|
24584 times
|
| |
| |
Tim Gould wrote:
> I'm sure Delphi has some hideous yet totally type-safe system ;)
Yes, and no, or rather, maybe. In Delphi you would do something like
Write(Format('%g', [Value]));
i.e more or less the same format strings as in C. But, it is type-safe at
runtime :-)
--
Anders Isaksson
|
|
Message is in Reply To:
| | Re: number notation in official parts
|
| (...) Ahhh. I'd never heard of %g before now. I'm so used to %f and %e it had never occured to me that there might be a mixed option. Handy to know as I suspect it would be helpful in reading files of unknown format. I'm sure Delphi has some hideous (...) (15 years ago, 12-Mar-10, to lugnet.cad.dev)
|
13 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|