Skip to content

Update undocumented precision in documentation #10381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025

Conversation

DCrepper
Copy link
Contributor

@DCrepper DCrepper commented May 8, 2025

In the Number helper class currency method precision not documented, but exist in the code, there is a lot of currency that do not use any subb currency Like (HUF)

In the Number helper class currency method precision not documented, but exist in the code, there is a lot of currency that do not use any subb currency Like (HUF)
@DCrepper
Copy link
Contributor Author

DCrepper commented May 8, 2025

I think 10 or 11 when introduced need to be also change like 11.x or 10.x i dont know exactly when. but its very use full, and i have idea about set default precision based on local.

@taylorotwell taylorotwell merged commit 14281cf into laravel:12.x May 8, 2025
@DCrepper DCrepper deleted the patch-1 branch May 8, 2025 15:01
Copy link
Contributor

@shaedrich shaedrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a lot of currency that do not use any subb currency Like (HUF)

As discussed in laravel/framework#54456, it might be interesting to add the cases where this might be used to the documentation

@@ -1552,6 +1552,10 @@ $currency = Number::currency(1000, in: 'EUR');
$currency = Number::currency(1000, in: 'EUR', locale: 'de');

// 1.000,00 €

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it make sense to have a descriptive paragraph here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants