FLOAT

Extends:

lib/data-types.js~ABSTRACTNUMBER → FLOAT

Floating point number (4-byte precision).

Constructor Summary

Public Constructor
public

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

Public Constructors

public constructor(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)

Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/master/class/lib/data-types.js~FLOAT.html