Message Boards Message Boards

0
|
204 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

A question about Length[ ] applied to a number

Posted 12 days ago

I can not understand why Length[53]==0 but not 1 in Mathmatica. enter image description here

POSTED BY: Martin Xia

Numbers like 53 and 5 are treated as atomic objects in Mathematica:

AtomQ[53]

and as such they have no arguments.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract