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
Numeric - Java representation of a numeric object
Description
The com.maplesoft.openmaple.Numeric class represents a Maple numeric object (a float or an integer). As Numeric publicly inherits from Algebraic, it provides all of the member functions from the Algebraic class as well as those listed here.
Method Summary
boolean isByte()
isByte returns true if the value represented by this Numeric is an integer within the range of a Java byte.
boolean isShort()
isShort returns true if the value represented by this Numeric is an integer within the range of a Java short.
boolean isInt()
isInt returns true if the value represented by this Numeric is an integer within the range of a Java int.
boolean isLong()
isLong returns true if the value represented by this Numeric is an integer within the range of a Java long.
boolean isInteger()
isInteger returns true if the value represented by this Numeric is an integer.
boolean isUnnamedZero()
isUnnamedZero returns true if the value represented by this Numeric is zero.
float floatValue()
floatValue converts the value represented by the Numeric to a float.
double doubleValue()
doubleValue returns the value represented in the Numeric as a Java double.
byte byteValue()
byteValue returns the value represented by the Numeric as a Java byte.
short shortValue()
shortValue returns the value represented by the Numeric as a Java short.
int intValue()
intValue returns the value represented by the Numeric as a Java int.
long longValue()
longValue returns the value represented by the Numeric as a Java long.
See Also
OpenMaple, OpenMaple/Java/Algebraic, OpenMaple/Java/API, OpenMaple/Java/Examples
Download Help Document