FieldtypeFloat::getPrecision()

Get precision of given value

Usage

// basic usage
$int = FieldtypeFloat::getPrecision($value);

// usage with all arguments
$int = FieldtypeFloat::getPrecision($value, int $min = 1);

Arguments

NameType(s)Description
$valuestring float
$min (optional)int

minimum precision to return

Return value

int


FieldtypeFloat methods and properties

API reference based on ProcessWire core version 3.0.251