newlisp import atof
Posted: Wed Dec 26, 2012 4:58 am
in my osx
I ran the code from docs
what is -1682161784 ?
I thought it will be 3.141,am I right?
my newlisp is 10.4.4
Anyone can help a little?
Code: Select all
Darwin DingDangs-MacBook.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Code: Select all
> (import "libc.dylib" "atof" "double" "char*")
atof@9BB16FC3
> (atof "3.141")
-1682161784
I thought it will be 3.141,am I right?
my newlisp is 10.4.4
Anyone can help a little?