Jump to content


Photo

**solved** integers and floats


  • Please log in to reply
2 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 April 2006 - 10:08 PM

Why can integers only hold a certain number, it's max number is
2147483647
from this point it is converted to a float.
What is the point of this, does it have somethign to do with float being used also for fractions, or is there another reason, why the developers of php choose to make it's max number, that specific number
And excuse me for saying htis
but what is jan 1 whatever year
i Have heard this everywhere with every program language, the "magical year" is january first, of some old long lost date, what does that have to do with.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 17 April 2006 - 10:38 PM

1 ) 2147483647 is max than can be held in 4 bytes with a sign bit. ( = 2^31 - 1).

2 ) Unix times are stored in seconds since 1970-01-01 00:00:00
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 April 2006 - 10:47 PM

thank you that makes a little more since now.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users