/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/qa28.cs
16 строк
462 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
using System; public class Example9 { public static void Main() { // <Snippet28> int value = 16342; string result = String.Format("{0,18:00000000} {0,18:00000000.000} {0,18:000,0000,000.0}", value); Console.WriteLine(result); // The example displays the following output: // 00016342 00016342.000 0,000,016,342.0 // </Snippet28> } }