/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/qa27.vb
15 строк
450 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
' Visual Basic .NET Document Option Strict On ' <Snippet27> Module Example8 Public Sub Main() Dim value As Decimal = 16309.5436D Dim result As String = String.Format("{0,12:#.00000} {0,12:0,000.00} {0,12:000.00#}", value) Console.WriteLine(result) End Sub End Module ' The example displays the following output: ' 16309.54360 16,309.54 16309.544 ' </Snippet27>