You are here

private static property SassNumber::$unitConversion in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassNumber.php \SassNumber::unitConversion

(only because pt and pc are expressed as fraction of an inch, so makes the numbers easy to understand). Conversions are based on the following in: inches — 1 inch = 2.54 centimeters cm: centimeters mm: millimeters pc: picas — 1 pica = 12 points pt: points — 1 point = 1/72nd of an inch

Type: array Conversion factors for units using inches as the base unit

File

phpsass/script/literals/SassNumber.php, line 47

Class

SassNumber
SassNumber class. Provides operations and type testing for Sass numbers. Units are of the passed value are converted the those of the class value if it has units. e.g. 2cm + 20mm = 4cm while 2 + 20mm = 22mm. @package PHamlP @subpackage …

Code

private static $unitConversion = array(
  'in' => 1,
  'cm' => 2.54,
  'mm' => 25.4,
  'pc' => 6,
  'pt' => 72,
);