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

Breadcrumb

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

function BigNumber::from

Overridden by subclasses to convert a BigNumber to an instance of the subclass.

@psalm-pure

Throws

MathException If the value cannot be converted.

1 call to BigNumber::from()
BigNumber::of in vendor/brick/math/src/BigNumber.php
Creates a BigNumber of the given value.
3 methods override BigNumber::from()
BigDecimal::from in vendor/brick/math/src/BigDecimal.php
@psalm-pure
BigInteger::from in vendor/brick/math/src/BigInteger.php
@psalm-pure
BigRational::from in vendor/brick/math/src/BigRational.php
@psalm-pure

File

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

Class

BigNumber
Common interface for arbitrary-precision rational numbers.

Namespace

Brick\Math

Code

protected static abstract function from(BigNumber $number) : static;

API Navigation

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