original_string: public static function roundFixed($value, $decimals = 2)
      {
          $value = round($value, $decimals);
  
          $pos = strpos($value, '.');
  
          if ($pos === false) {
              $value .= '.' . str_repeat('0', $decimals);
          } else {
              $extra = $decimals - strlen($value) + $pos + 1;
              if ($extra > 0) {
                  $value .= str_repeat('0', $extra);
              }
          }
  
          return $value;
      }
code: public static function roundFixed($value, $decimals = 2)
      {
          $value = round($value, $decimals);
  
          $pos = strpos($value, '.');
  
          if ($pos === false) {
              $value .= '.' . str_repeat('0', $decimals);
          } else {
              $extra = $decimals - strlen($value) + $pos + 1;
              if ($extra > 0) {
                  $value .= str_repeat('0', $extra);
              }
          }
  
          return $value;
      }
code_tokens: public static function roundFixed ( $ value , $ decimals = 2 ) { $ value = round ( $ value , $ decimals ) ; $ pos = strpos ( $ value , '.' ) ; if ( $ pos === false ) { $ value .= '.' . str_repeat ( '0' , $ decimals ) ; } else { $ extra = $ decimals - strlen ( $ value ) + $ pos + 1 ; if ( $ extra > 0 ) { $ value .= str_repeat ( '0' , $ extra ) ; } } return $ value ; }
docstring: Rounds the value with a fixed number of decimals, padding
  zeros when required.
  
  @param numeric $value
  @param int $decimals
  @return string
docstring_tokens: Rounds the value with a fixed number of decimals padding zeros when required .