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

Breadcrumb

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

function BigDecimal::ten

Returns a BigDecimal representing ten, with a scale of zero.

@psalm-pure

File

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

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

public static function ten() : BigDecimal {
    
    /**
     * @psalm-suppress ImpureStaticVariable
     * @var BigDecimal|null $ten
     */
    static $ten;
    if ($ten === null) {
        $ten = new BigDecimal('10');
    }
    return $ten;
}

API Navigation

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