[PD] atoi should be atol (L)
Johannes M Zmoelnig
zmoelnig at iem.at
Tue Dec 7 13:10:57 CET 2004
Marc Boon wrote:
> Lex Ein wrote:
>
> I think the confusion could be avoided if zexy's [atoi] was named
> [atof], since that's what is is: it converts a string to a float (not to
> an int).
no it does not convert a string to a float.
it converts a string to an integer, then converts the integer to a float
and finally outputs that float.
[atof] would convert a symbol "3.14159" into a float 3.14159
[atoi] does nothing like that. it will output a float 3.0
mfg.a.sdr
IOhannes
More information about the Pd-list
mailing list