Skip to content
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

How do I use FormatString in Display component #5202

Closed
ArgoZhang opened this issue Jan 24, 2025 · 1 comment · Fixed by #5203
Closed

How do I use FormatString in Display component #5202

ArgoZhang opened this issue Jan 24, 2025 · 1 comment · Fixed by #5203
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@ArgoZhang
Copy link
Collaborator

Discussed in #5199

Originally posted by jvk-digres January 24, 2025
Hello,

I'm a bit confused as how do I use FormatString parameter in Display<double> component.

If I set it to: {0:F2} and set value to 123.555 I expect it to format with max two decimal places but instead I get: {124:F2} as a result. It seems like it's not using the usual string.Format method.

Copy link

bb-auto bot commented Jan 24, 2025

@ArgoZhang Thank you for reporting. We will give triage later.

@bb-auto bb-auto bot added the triage Triage the issue late label Jan 24, 2025
@bb-auto bb-auto bot added this to the v9.2.0 milestone Jan 24, 2025
@ArgoZhang ArgoZhang added documentation Improvements or additions to documentation and removed triage Triage the issue late labels Jan 24, 2025
@ArgoZhang ArgoZhang linked a pull request Jan 24, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant