Skip to content

apitabledefinitiondecimal

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

decimal()

Usage

Adds a decimal column definition to the table definition object

Function Syntax

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

Parameters

Parameter Type Required Default Description
columnNames string Yes one or more column names, comma delimited
default integer | float No default value for column
null boolean No whether nulls are allowed
precision number No precision value for decimal columns, i.e. number of digits the column can hold
scale integer No 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 email to precision)

Examples

Clone this wiki locally