To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 11063
11062  |  11064
Subject: 
Re: number notation in official parts
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 12 Mar 2010 22:44:40 GMT
Viewed: 
23631 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 (...) (14 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR