Skip to main content
Version: Java (Groovy)

floatCol

The floatCol method creates a column containing Java primitive float values.

note

This method is commonly used with newTable to create tables.

Syntax

floatCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

datafloat...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of floats named Floats.

result = newTable(
floatCol("Floats", (float)9.9, (float)8.8, (float)7.7)
)