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)
GType _gType() @property
Numeric self()Returns `this`, for use in `with` statements.
string number() @propertyGet `number` field. Returns: a string representing a number
void number(string propval) @propertySet `number` field. Params: propval = a string representing a number
glong precision() @propertyGet `precision` field. Returns: precision to use when @number is converted (not implemented jet)
void precision(glong propval) @propertySet `precision` field. Params: propval = precision to use when @number is converted (not implemented jet)
glong width() @propertyGet `width` field. Returns: not implemented jet
void width(glong propval) @propertySet `width` field. Params: propval = not implemented jet
gda.numeric.Numeric copy()Creates a new #GdaNumeric structure from an existing one. Returns: a newly allocated #GdaNumeric which contains a copy of information in boxed.
double getDouble()
glong getPrecision()Gets the precision of a #GdaNumeric. Returns: an integer with the precision of a #GdaNumeric.
string getString()Get 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()Gets the width of a #GdaNumeric. (Not yet implemented). Returns: an integer with the width of a #GdaNumeric. (Not jet implemented).
void setDouble(double number)Sets numeric using a #gdouble represented by number.
void setFromString(string str)Sets numeric with a number represented by str, in the C locale format (dot as a fraction separator).
void setPrecision(glong precision)Sets the precision of a #GdaNumeric.
void setWidth(glong width)Sets 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.