float


Object Hierarchy:

float float float

Description:

[ SimpleType ]
[ GIR ( name = "gfloat" ) ]
[ CCode ( cname = "gfloat" , default_value = "0.0F" , default_value_on_error = "-1.0F" , get_value_function = "g_value_get_float" , marshaller_type_name = "FLOAT" , set_value_function = "g_value_set_float" , type_id = "G_TYPE_FLOAT" ) ]
[ FloatingType ( rank = 1 ) ]
public struct float

Example: General samples:

public static int main (string[] args) {
float f1 = 0.3f;
float f2 = 3.4f;

// Output: ``0.300000, 3.400000``
print ("%f, %f\n", f1, f2);
return 0;
}

valac --pkg glib-2.0 float.vala


Package: glib-2.0

Content:

Constants:

Static methods:

Methods: