Exemple #1
0
 /**
  * @param int $scale
  *
  * @return string
  */
 private function valueWithMinScale($scale)
 {
     $value = (string) $this->intVal;
     if (!$this->intVal->isZero() && $scale > $this->scale) {
         $value .= str_repeat('0', $scale - $this->scale);
     }
     return $value;
 }