# numDims(a)

Returns the dimensionality of a value.

Function only- no corresponding object

### Syntax

o_numDims(a)
  a: any - any value
  return: Int32 - the number of dimensions. 0 for scalar 1 or more for an array

### Usage

This is the same as using the Unbuild Array object but has the advantage of being useful inside expressions.

### Location

menu: no menu pick - to access use the Function and Object browser

library: dataLib

### Example

`(o_numDims(A)?A:[A])` returns the input unchanged if it is an array, but converts a scalar input into a 1D array. Hence regardless of the input, the result is an array.

### Notes

### Reference

### Dependencies

### Supported On

VEE7.0+, all platforms

### See Also

dimSizes, arrayData, startFreq, stopFreq, timeSpan

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:25.