framework/i18n/Formatter.php
public function asShortWeight($value, $decimals = null, $options = [], $textOptions = [])
    {
        return $this->formatUnit(self::UNIT_WEIGHT, self::FORMAT_WIDTH_SHORT, $value, null, null, $decimals, $options, $textOptions);
    }
public function asShortWeight($value, $decimals = null, $options = [], $textOptions = [])
    {
        return $this->formatUnit(self::UNIT_WEIGHT, self::FORMAT_WIDTH_SHORT, $value, null, null, $decimals, $options, $textOptions);
    }
public function asShortWeight ( $ value , $ decimals = null , $ options = [ ] , $ textOptions = [ ] ) { return $ this -> formatUnit ( self :: UNIT_WEIGHT , self :: FORMAT_WIDTH_SHORT , $ value , null , null , $ decimals , $ options , $ textOptions ) ; }
Formats the value as a weight in human readable form for example `12 kg`.
This is the short form of [[asWeight]].

Check properties [[baseUnits]] if you need to change unit of value as the multiplier
of the smallest unit and [[systemOfUnits]] to switch between [[UNIT_SYSTEM_METRIC]] or [[UNIT_SYSTEM_IMPERIAL]].

@param float|int $value value to be formatted.
@param int $decimals the number of digits after the decimal point.
@param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]].
@param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].
@return string the formatted result.
@throws InvalidArgumentException if the input value is not numeric or the formatting failed.
@throws InvalidConfigException when INTL is not installed or does not contain required information.
@since 2.0.13
@author John Was <janek.jan@gmail.com>
Formats the value as a weight in human readable form for example 12 kg . This is the short form of [[ asWeight ]] .