Reply to Re: working with array with floats

Your name:

Reply:


Posted by Rik on 01/31/07 21:23

Gunnar G <debian@comhem.se> 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация