Double
in package
Double class.
Table of Contents
- formatToDb() : float
- Convert number to format for database.
- formatToDisplay() : string
- Function to display number in user format.
- truncateZeros() : string
- Function to truncate zeros.
Methods
formatToDb()
Convert number to format for database.
public
static formatToDb(string|null $value) : float
Parameters
- $value : string|null
Return values
float —formatToDisplay()
Function to display number in user format.
public
static formatToDisplay(string|null $value[, bool $fixed = true ]) : string
Parameters
- $value : string|null
- $fixed : bool = true
Return values
string —truncateZeros()
Function to truncate zeros.
public
static truncateZeros(string $value) : string
Parameters
- $value : string