Re: working with array with floats
- From: Rik <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 22:23:29 +0100
Gunnar G <debian@xxxxxxxxx> wrote:
I have read a file with the file() command and it contains numbers, numbers
that are larger than 2^32 and now I wonder, will this be a problem if I do
arithemtcis,
I leave that to the people who actually learned the basics, is suspect it might.
or is there some easy way to force it to use consider the
array as floatingpoint numbers?
You can use floatval() on a string without problems. However, depending on how the data in that file is stored, you might want to look into the fscanf() function.
--
Rik Wasmus
.
- References:
- working with array with floats
- From: Gunnar G
- working with array with floats
- Prev by Date: Re: Newlines don't work.
- Next by Date: Re: Concatenating object methods
- Previous by thread: working with array with floats
- Next by thread: Checkbox array passes to script fine but doesn't mail right
- Index(es):
Relevant Pages
|