to_string
Description:
[ CCode ( cname = "g_strdup_printf" , instance_pos = -1 ) ]
public string to_string (string format = "%i")
public string to_string (string format = "%i")
Converts the value to its equivalent string representation
Example: Int to string:
public static int main (string[] args) {
// Output:
// ``-2147483648``
// ``2147483647``
// ``0``
print ("%s\n", int.MIN.to_string ());
print ("%s\n", int.MAX.to_string ());
print ("%s\n", 0.to_string ());
return 0;
}
valac --pkg glib-2.0 int.to_string.vala