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

Breadcrumb

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

function BigDecimal::hasNonZeroFractionalPart

Returns whether this decimal number has a non-zero fractional part.

File

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

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

public function hasNonZeroFractionalPart() : bool {
    return $this->getFractionalPart() !== \str_repeat('0', $this->scale);
}

API Navigation

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