Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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.
world
an attempt at making a usable code thing
Bubble Sort
Par ou ímpar
Random number generator
Find the missing number in an array2
Primes
asdfghyjuytt4wed
Prueba
Added Carnival, List Matching
Please log in to post a comment.