# Class Opencart\System\Library\Cart\Weight

Class Weight

Located at system\library\cart\weight.php

Methods
`public` | `__construct(Registry $registry)` Constructor Constructor | #
`public` | `convert(float $value, int $from, int $to): float` Convert Convert | #
`public` | `format(float $value, int $weight_class_id, string $decimal_point = '.', string $thousand_point = ','): string` Format Format | #
`public` | `getUnit(int $weight_class_id): string` getUnit getUnit | #

OpenCart API API documentation generated by ApiGen dev-master