Skip to content

Paramete for getDecimalAmount not used #31

Description

@simonbuehler

Hi,

the getDecimalAmount method seems to be off, the $scale parameter isn't used at all, only $this->scale?

money/src/Money.php

Lines 84 to 90 in 66edcbd

public function getDecimalAmount($scale = 2): string
{
return $this->instance
->getAmount()
->dividedBy($this->getDivider(), $this->scale, static::$roundingMode)
->toScale($this->scale, static::$roundingMode);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions