Skip to content

apitabledefinitiondecimal

Troy Murray edited this page Sep 15, 2011 · 3 revisions

Table Definitions :: decimal function

Usage

Adds a decimal column definition to the table definition object

t.decimal(columnNames[,default,null,precision,scale]);

Parameters

Parameter Required Default Description columnNames Yes one or more column names, camelCase recommended, comma delimited default No default value for column null No boolean, whether nulls are allowed precision No number, precision value for decimal columns, i.e. number of digits the column can hold scale No number, scale value for decimal columns, i.e. number of digits that can be placed to the right of the decimal point (must be less than or equal to precision)

Clone this wiki locally