Back to Sequelize

FLOAT

static/v5/class/lib/data-types.js~FLOAT.html

latest2.0 KB
Original Source

publicclass| source

FLOAT

Extends:

lib/data-types.js~ABSTRACT → NUMBER → FLOAT

Floating point number (4-byte precision).

Constructor Summary

| Public Constructor | | public |

constructor(length: string | number, decimals: string | number)

| |

Public Constructors

publicconstructor(length: string | number, decimals: string | number) source

Override:

NUMBER#constructor

Params:

| Name | Type | Attribute | Description | | length | string | number |

  • optional

|

length of type, like FLOAT(4)

| | decimals | string | number |

  • optional

|

number of decimal points, used with length FLOAT(5, 4)

|