gda.numeric
Module for [Numeric] class
class Numeric
Types 1
classNumeric : gobject.boxed.Boxed
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 number(string propval) @propertySet `number` field. Params: propval = a string representing a numberglong 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)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 numericglong 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).