1
0
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:
playX
2021-09-03 12:16:07 +03:00
committed by GitHub
parent 227d12f1ac
commit 08c517c966
18 changed files with 432 additions and 388 deletions

9
vlib/strconv/atof.js.v Normal file
View 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
}