Removed float as it is not used
This commit is contained in:
parent
c545ce5bd1
commit
a927bca4fe
@ -569,24 +569,6 @@ class Structure {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a new column of data type 'float' to this structure
|
|
||||||
* @param {String} name - Name of the column
|
|
||||||
* @param {Number} [p] - Precision. Min 1, Max 53. Defaults to 25
|
|
||||||
* @param {ConstraintOptions} [options] - Extra constraint options
|
|
||||||
* @returns {this}
|
|
||||||
*/
|
|
||||||
float(name, p=25, options={}){
|
|
||||||
if (!name) throw new Error("name must not be empty");
|
|
||||||
if (typeof name !== "string") throwTypeError("string", name);
|
|
||||||
if (typeof p !== "number") throwTypeError("number", p);
|
|
||||||
if (typeof options !== "object") throwTypeError("object", options);
|
|
||||||
if (p < 1 || p > 53) throwRangeError(1, 53, p);
|
|
||||||
|
|
||||||
this.#columns.push(parseColumnData(name, `float(${p})`, options));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new column of data type 'double' to this structure
|
* Adds a new column of data type 'double' to this structure
|
||||||
* @param {String} name - Name of the column
|
* @param {String} name - Name of the column
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user