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

Breadcrumb

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

function BigDecimal::__construct

Protected constructor. Use a factory method to obtain an instance.

Parameters

string $value The unscaled value, validated.:

int $scale The scale, validated.:

File

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

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

protected function __construct(string $value, int $scale = 0) {
    $this->value = $value;
    $this->scale = $scale;
}

API Navigation

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