Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Typeof

Format: typeof x

Arguments: [any] x Any valid expression

Returns: (text) Text indicating the type of the data in x

Description: This operator evaluates x and then returns a text string from the table below indicating the type of data in x.

Returns Data Type

undefined null

boolean Boolean value true or false

number Any real or complex number

string Text string

object List or object

function Function pointer

Examples: typeof null = undefined

typeof true = boolean

typeof 5 = number

typeof "Hello World" = string

typeof 1..3 = object

typeof sqrt = function

See Also: dtype

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend