Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Double.d File Reference

Go to the source code of this file.

Functions

struct DoubleTemplate (T)
typedef DoubleTemplate (char) Double
else double frexp (double, int *)

Variables

module mango convert Double
import mango convert Atoi


Detailed Description

Copyright (c) 2004 Kris Bell

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for damages of any kind arising from the use of this software.

Permission is hereby granted to anyone to use this software for any purpose, including commercial applications, and to alter it and/or redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment within documentation of said product would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any distribution of the source.

4. Derivative works are permitted, but they must carry this notice in full and credit the original source.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version:
Initial version, Nov 2005
Author:
Kris

Definition in file Double.d.


Function Documentation

struct DoubleTemplate  ) 
 

A set of functions for converting between string and floating- point values.

Convert a float to a string. This produces pretty good results for the most part, though one should use David Gay's dtoa package for best accuracy.

Note that the approach first normalizes a base10 mantissa, then pulls digits from the left side whilst emitting them (rightward) to the output.

Convert a formatted string of digits to a floating- point number. Good for general use, but use David Gay's dtoa package if serious rounding adjustments should be applied.

Internal function to convert an exponent specifier to a floating point value.

Definition at line 51 of file Double.d.

References assert(), Atoi, AtoiTemplate(), DoubleTemplate(), frexp(), and pragma().

Referenced by DoubleTemplate(), TextReaderTemplate(), and TokenTemplate().

typedef DoubleTemplate char   ) 
 

else double frexp double  ,
int * 
 

Referenced by DoubleTemplate(), and VersionX86::frexp().


Variable Documentation

module mango convert Double
 

Definition at line 40 of file Double.d.

import mango convert Atoi
 

Definition at line 42 of file Double.d.


Generated on Sat Dec 24 17:28:35 2005 for Mango by  doxygen 1.4.0