You are here

public function SassNumber::isInt in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/literals/SassNumber.php \SassNumber::isInt()

* Returns a value indicating if this number is an integer. *

Return value

boolean true if this number is an integer, false if not

1 call to SassNumber::isInt()
SassNumber::toInt in phamlp/sass/script/literals/SassNumber.php
* Returns the integer value. *

File

phamlp/sass/script/literals/SassNumber.php, line 468

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 =…

Code

public function isInt() {
  return $this->value % 1 === 0;
}