Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
string.Format example
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string valorTeste = "100,000.00"; Console.WriteLine(string.Format("{#.##0,##}", float.Parse(valorTeste, System.Globalization.CultureInfo.InvariantCulture))); Console.WriteLine(string.Format("{0:n}", float.Parse(valorTeste, System.Globalization.CultureInfo.InvariantCulture)).ToString()); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
Intuit // C# // listing_4.5 (Math. /Pow /Sin)
abababa sub string
D15
Square Integer Matrix
Hack
SierpinskiTriangleChaosGameRecursion
anyonymous type pass to method in c#
Code wall rules
Vin Generator V1
stackse - search stackoverflow differently
Please log in to post a comment.