Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BigDecimal.php

function BigDecimal::toBigInteger

Overrides BigNumber::toBigInteger

File

vendor/brick/math/src/BigDecimal.php, line 612

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

public function toBigInteger() : BigInteger {
    $zeroScaleDecimal = $this->scale === 0 ? $this : $this->dividedBy(1, 0);
    return self::newBigInteger($zeroScaleDecimal->value);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal