# Class Opencart\System\Library\Cart\Length

Class Length

Located at system\library\cart\length.php

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

OpenCart API API documentation generated by ApiGen dev-master