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

Breadcrumb

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

function BigNumber::newBigDecimal

Proxy method to access BigDecimal's protected constructor from sibling classes.

@internal @psalm-pure

1 call to BigNumber::newBigDecimal()
BigInteger::toBigDecimal in vendor/brick/math/src/BigInteger.php
Converts this number to a BigDecimal.

File

vendor/brick/math/src/BigNumber.php, line 189

Class

BigNumber
Common interface for arbitrary-precision rational numbers.

Namespace

Brick\Math

Code

protected final function newBigDecimal(string $value, int $scale = 0) : BigDecimal {
    return new BigDecimal($value, $scale);
}

API Navigation

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