Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
length - length of an object
Calling Sequence
length(expr)
Parameters
expr
-
expression
Description
The length(expr) function returns the length of expr.
If expr is an integer, the number of decimal digits is returned (where the length of zero is defined to be zero and the length of a negative integer is defined to be the same as the length of the absolute value of the integer).
If expr is a string, the number of characters in expr is returned.
If expr is a rtable object, the number of words of storage occupied by the rtable is returned (including the data, the attributes, and the data structure itself).
For other objects, the length of each operand of expr is computed recursively and added to the number of words used to represent expr. In this way, the measure of the size of expr is returned.
Thread Safety
The length command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
StringTools[Length]
Download Help Document