© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Combine string formatting (eg `$"{number:N2}" with D2) so like `{number:N2D2}`) - C#
C
C#
•
3y ago
•
11 replies
Caeden
Combine string formatting (eg `$"{number:N2}" with D2) so like `{number:N2D2}`)
You have string interpolation like
$
"
{
n
u
m
b
e
r
:N2
}
"
, how can I combine formats
?
Like
$
"
{
n
u
m
b
e
r
:N2D2
}
"
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
need help with string formatting
C
C# / help
4y ago
✅ Simple string formatting
C
C# / help
3y ago
❔ Number formatting issue
C
C# / help
4y ago
Avanlonia binding string formatting?
C
C# / help
3y ago