Skip to content

How do I use FormatString in Display component #5202

Closed
1 of 1 issue completed
Closed
@ArgoZhang

Description

@ArgoZhang

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.

Sub-issues

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions