public static function quoteDecimal($value): string
  {
    if ($value===null || $value==='') return 'null';

    if (is_int($value) || is_float($value)) return (string)$value;

    return "'".self::$mysqli->real_escape_string($value)."'";
  }
public static function quoteDecimal($value): string
  {
    if ($value===null || $value==='') return 'null';

    if (is_int($value) || is_float($value)) return (string)$value;

    return "'".self::$mysqli->real_escape_string($value)."'";
  }
public static function quoteDecimal ( $ value ) : string { if ( $ value === null || $ value === '' ) return 'null' ; if ( is_int ( $ value ) || is_float ( $ value ) ) return ( string ) $ value ; return "'" . self :: $ mysqli -> real_escape_string ( $ value ) . "'" ; }
Returns a literal for a decimal value that can be safely used in SQL statements.

@param float|int|string|null $value The value.

@return string
Returns a literal for a decimal value that can be safely used in SQL statements .