Files
herolib/lib/biz/spreadsheet/tools.v
2024-12-30 12:22:36 +02:00

18 lines
249 B
V

module spreadsheet
pub fn array2float(list []int) []f64 {
mut list2 := []f64{}
for i in list {
list2 << f64(i)
}
return list2
}
pub fn array2int(list []f64) []int {
mut list2 := []int{}
for i in list {
list2 << int(i)
}
return list2
}