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

Breadcrumb

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

function BigDecimal::negated

Returns the negated value of this number.

1 call to BigDecimal::negated()
BigDecimal::abs in vendor/brick/math/src/BigDecimal.php
Returns the absolute value of this number.

File

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

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

public function negated() : BigDecimal {
    return new BigDecimal(Calculator::get()->neg($this->value), $this->scale);
}

API Navigation

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