Skip to content

Bug: Number Helper, Currency Fraction issue #2634

Description

@najdanovicivan

Describe the bug
Wrong number of decimals in currency output

CodeIgniter 4 version
git 4.0.2 develop branch

Affected module(s)
Number Helper

Expected behavior, and steps to reproduce if appropriate

echo number_to_currency(3341.43, 'RSD','sr_RS');

Should have output "3.431,43 RSD" but instead I'm getting "3.431 RSD" without decimals

Context

  • OS: MacOS 10.14.6
  • Web server Apache MAMP Pro
  • PHP version 7.2.21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions