FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » integer and string what's the difference ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: integer and string what's the difference ? [message #175862 is a reply to message #175861] Tue, 01 November 2011 17:25 Go to previous messageGo to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma:
Senior Member
On 11/1/2011 11:23 AM, richard wrote:

> An integer is any numeric value.

Absolute nonsense. 123.456 is a numeric value, but it is not an integer.

> Where some will argue that an integer is any whole number like 0 or 1.

That is, in fact, the definition of an integer: a number that has no
fractional part. There is no "argument" about it, except by the uninformed.

C, the set of counting numbers, is {1, 2, 3, ...}
W, the set of whole numbers, is C and zero: {0, 1, 2, 3, ...}
I, the set of integers, is W and the negatives of C: { ..., -3, -2, -1,
0, 1, 2, 3, ...}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: missing variable
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 06 04:22:14 GMT 2024

Total time taken to generate the page: 0.05626 seconds