Numeric

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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GdaNumeric with defaults.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
copy
gda.numeric.Numeric copy()

Creates a new #GdaNumeric structure from an existing one.

getDouble
double getDouble()
getPrecision
glong getPrecision()

Gets the precision of a #GdaNumeric.

getString
string getString()

Get the string representation of numeric, in the C locale format (dot as a fraction separator).

getWidth
glong getWidth()

Gets the width of a #GdaNumeric. (Not yet implemented).

self
Numeric self()

Returns this, for use in with statements.

setDouble
void setDouble(double number)

Sets numeric using a #gdouble represented by number.

setFromString
void setFromString(string str)

Sets numeric with a number represented by str, in the C locale format (dot as a fraction separator).

setPrecision
void setPrecision(glong precision)

Sets the precision of a #GdaNumeric.

setWidth
void setWidth(glong width)

Sets the width of a #GdaNumeric. (Not yet implemented).

Properties

_gType
GType _gType [@property getter]
number
string number [@property getter]

Get number field.

number
string number [@property setter]

Set number field.

precision
glong precision [@property getter]

Get precision field.

precision
glong precision [@property setter]

Set precision field.

width
glong width [@property getter]

Get width field.

width
glong width [@property setter]

Set width field.

Static functions

_getGType
GType _getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.