gda.numeric

Module for [Numeric] class

class Numeric

Types 1

Holds numbers represented as strings.

This struct must be considered as opaque. Any access to its members must use its accessors added since version 5.0.2.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Numeric self() nothrowReturns `this`, for use in `with` statements.
string number() @property nothrowGet `number` field. Returns: a string representing a number
void number(string propval) @property nothrowSet `number` field. Params: propval = a string representing a number
glong precision() @property nothrowGet `precision` field. Returns: precision to use when @number is converted (not implemented jet)
void precision(glong propval) @property nothrowSet `precision` field. Params: propval = precision to use when @number is converted (not implemented jet)
glong width() @property nothrowGet `width` field. Returns: not implemented jet
void width(glong propval) @property nothrowSet `width` field. Params: propval = not implemented jet
gda.numeric.Numeric copy() nothrowCreates a new #GdaNumeric structure from an existing one. Returns: a newly allocated #GdaNumeric which contains a copy of information in boxed.
double getDouble() nothrow
glong getPrecision() nothrowGets the precision of a #GdaNumeric. Returns: an integer with the precision of a #GdaNumeric.
string getString() nothrowGet the string representation of numeric, in the C locale format (dot as a fraction separator). Returns: a new string representing the stored valued in numeric
glong getWidth() nothrowGets the width of a #GdaNumeric. (Not yet implemented). Returns: an integer with the width of a #GdaNumeric. (Not jet implemented).
void setDouble(double number) nothrowSets numeric using a #gdouble represented by number.
void setFromString(string str) nothrowSets numeric with a number represented by str, in the C locale format (dot as a fraction separator).
void setPrecision(glong precision) nothrowSets the precision of a #GdaNumeric.
void setWidth(glong width) nothrowSets the width of a #GdaNumeric. (Not yet implemented).
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GdaNumeric with defaults. Returns: a new #GdaNumeric.