You are here

function pImage::getFirstDecimal in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pImage.class.php \pImage::getFirstDecimal()

File

pChart/class/pImage.class.php, line 256

Class

pImage

Code

function getFirstDecimal($Value) {
  $Values = preg_split("/\\./", $Value);
  if (isset($Values[1])) {
    return substr($Values[1], 0, 1);
  }
  else {
    return 0;
  }
}