public function setDecimalPoint($decimalPoint)
    {
        switch ($decimalPoint) {
            case self::DECIMAL_COMMA:
            case ',':
                $this->decimalPoint = self::DECIMAL_COMMA;
                break;

            case self::DECIMAL_POINT_OR_COMMA:
            case '.,':
            case ',.':
                $this->decimalPoint = self::DECIMAL_POINT_OR_COMMA;
                break;

            case self::DECIMAL_POINT:
            case '.':
            default:
                $this->decimalPoint = self::DECIMAL_POINT;
        }

        return $this;
    }
public function setDecimalPoint($decimalPoint)
    {
        switch ($decimalPoint) {
            case self::DECIMAL_COMMA:
            case ',':
                $this->decimalPoint = self::DECIMAL_COMMA;
                break;

            case self::DECIMAL_POINT_OR_COMMA:
            case '.,':
            case ',.':
                $this->decimalPoint = self::DECIMAL_POINT_OR_COMMA;
                break;

            case self::DECIMAL_POINT:
            case '.':
            default:
                $this->decimalPoint = self::DECIMAL_POINT;
        }

        return $this;
    }
public function setDecimalPoint ( $ decimalPoint ) { switch ( $ decimalPoint ) { case self :: DECIMAL_COMMA : case ',' : $ this -> decimalPoint = self :: DECIMAL_COMMA ; break ; case self :: DECIMAL_POINT_OR_COMMA : case '.,' : case ',.' : $ this -> decimalPoint = self :: DECIMAL_POINT_OR_COMMA ; break ; case self :: DECIMAL_POINT : case '.' : default : $ this -> decimalPoint = self :: DECIMAL_POINT ; } return $ this ; }
Set the decimal point

@param int|string $decimalPoint
@return FloatValidator
Set the decimal point