CodeCentral Submissions for John Hardyhttp://codecentral.embarcadero.com/Generated by Atom.NET2021-10-16T08:58:10-07:00Format numbers to fixed, Engineering and Scientific notationJohn Hardyhttp://codecentral.embarcadero.com/Item/267602009-03-23T03:17:29-07:002009-03-23T03:17:29-07:00A unit that allows one to display numbers in any of the typical number formats found on a scientic calculator to any precisionThe attached unit and demo program gives the source code for a unit that formats your calculated results into one of the typical formats found on a calculator. The two public methods take a real number, or string representation of the number and format the result, to a given precision and type. The possible types are fixed, scientific and engineering. Fixed tries to diplay the number without an exponential, scientific alway a single digit followed by a decimal place and precicision and finally engineering make the exponential a multiple of three.