Post Reply 
Can you check for string parameters without a magic number?
11-16-2017, 07:28 AM
Post: #4
RE: Can you check for string parameters without a magic number?
In Home → TYPE
Code:
Syntax:
TYPE(object)

Returns the type of the object:
0: Real
1: Integer
2: String
3: Complex
4: Matrix
5: Error
6: List
8: Function
9: Unit
14.?: CAS object. the fractional part is the CAS type

In CAS → type (CAS.type in Home)
Code:
Syntax:
type(Object)

Returns the type of an object.
DOM_int
DOM_FLOAT, float
DOM_INT, integer
DOM_COMPLEX, complex
DOM_IDENT 
DOM_LIST 
DOM_SYMBOLIC, symbol
DOM_RAT, rational
DOM_STRING
DOM_FUNC

The types in Home and CAS are different, they are not related, for example the format #FFh for integers in CAS does not exist

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Can you check for string parameters without a magic number? - Carlos295pz - 11-16-2017 07:28 AM



User(s) browsing this thread: 1 Guest(s)