Get precision of given value
Usage
// basic usage
$int = FieldtypeFloat::getPrecision($value);
// usage with all arguments
$int = FieldtypeFloat::getPrecision($value, int $min = 1);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string, float | |
min (optional) | int | minimum precision to return |
Return value
int
FieldtypeFloat methods and properties
API reference based on ProcessWire core version 3.0.236