mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364)
This commit is contained in:
9
vlib/strconv/atof.js.v
Normal file
9
vlib/strconv/atof.js.v
Normal file
@ -0,0 +1,9 @@
|
||||
module strconv
|
||||
|
||||
// atof64 return a f64 from a string doing a parsing operation
|
||||
pub fn atof64(s string) f64 {
|
||||
res := 0.0
|
||||
#res.val = Number(s.str)
|
||||
|
||||
return res
|
||||
}
|
Reference in New Issue
Block a user