/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/qa27.cs
16 строк
448 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
using System; public class Example8 { public static void Main() { // <Snippet27> decimal value = 16309.5436m; string result = String.Format("{0,12:#.00000} {0,12:0,000.00} {0,12:000.00#}", value); Console.WriteLine(result); // The example displays the following output: // 16309.54360 16,309.54 16309.544 // </Snippet27> } }