Miso.Dataset.types. number

The number type is used for columns of numbers.

Source

Methods

<static> coerce ( v )

Returns: Number

Coerces the value to a number, a passthrough.

Parameters

  • v mixed required

    Value to be coerced

Returns

Type: Number
Source

<static> compare ( n1, n2 )

Returns: Number

Compares two number type values

Parameters

  • n1 Number required

    First value to be compared

  • n2 Number required

    Second value to be compared

Returns

Type: Number
Source

<static> numeric ( value )

Returns: Number

Returns the numeric representation of a number which will be..the number.

Parameters

  • value mixed required

    Value to be coerced to numeric

Returns

Type: Number
Source

<static> test ( v )

Returns: Boolean

Tests whether the value is a number.

Parameters

  • v mixed required

    Value to be tested

Returns

Type: Boolean
Source