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 |
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Definition in file Double.d.
|
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(). |
|
|
|
Referenced by DoubleTemplate(), and VersionX86::frexp(). |
|
|
|
|