dataFrame.column.num — ceil()
Description
The ceil() method of the num object returns the values of the selected column rounded up to the specified number of decimal places.
Signature
dataFrame.column(columnName).num.ceil(decimals)Argument
columnName(string)- The name of the column containing the values to round.
decimals(number)- The number of decimal places to keep.
Returns
mask( number[] )- An array containing the rounded values.
Example
// round up values from a column of the dataFrame
var mask = dataFrame.column('values').num.ceil(2);
// add values to the dataFrame
dataFrame.column('newValues').set(mask);