Vanguard Software
Forecasting & Planning Solutions

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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend