isFloat function in the Data functions

The isFloat function checks whether the data type of the attribute specified in the string parameter is continuous.

Functions can be used in formulas in Data mode, and within formula actions in the Dashboard mode


Parameters

isFloat(string, binary)

Parameter

Description

string

The nominal attribute to be tested. The string parameter is mandatory.

binary

If it is True, or not specified, results will be provided as Booleans (True/False), while if it is False, results will be provided in binary form (1/0).

The binary parameter values (True/False) are case sensitive.

Continuous type valid formats (if the values aren’t this format, the function will return a False or 0).

  • 34.000;

  • 34563.876


Example

The following example uses the Sales Videogames dataset.

Description

Screenshot

In this example, we want to check if the attribute LowUserPrice is a Float attribute.

We add a new attribute and write the following formula:

isFloat($"LowUserPrice",False)

We specified False as binary parameter, so the results will be provided as 1 (True) or 0 (False).