to_string


Description:

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