function pImage::getFirstDecimal

5.x pImage.class.php pImage::getFirstDecimal($Value)

File

inc/pchart/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);
  }
}