mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
8 lines
170 B
V
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()
|
|
}
|