Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- working with array with floats
- Gunnar G
January 31, 2007, 7:38 pm
rate this thread
that are larger than 2^32 and now I wonder, will this be a problem if I do
arithemtcis, or is there some easy way to force it to use consider the
array as floatingpoint numbers?
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.
Re: working with array with floats
Although PHP's dynamic typing should handle this properly, it might be =
useful to convert the string to an unsigned int with sprintf, if you run=
/* maybe pretend we're looping */
$uintArray = sprintf('%u', trim($currentLine)); // this way, huge in=
won't become negative
This is useful when you are converting IPs to longs.