v/vlib/builtin/int_d_new_int.v
2024-07-31 13:30:30 +03:00

8 lines
170 B
V

module builtin
// str returns the value of the `int` as a `string`.
// Example: assert int(-2020).str() == '-2020'
pub fn int_str(n int) string {
return i64(n).str()
}