Skip to content

Commit eff72a7

Browse files
authored
Fix code example output (#43162)
1 parent b413338 commit eff72a7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/standard/base-types/standard-numeric-format-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Standard numeric format strings
33
description: In this article, learn to use standard numeric format strings to format common numeric types into text representations in .NET.
4-
ms.date: 04/08/2021
4+
ms.date: 10/22/2024
55
ms.topic: reference
66
dev_langs:
77
- "csharp"

samples/snippets/csharp/VS_Snippets_CLR_System/system.Double.ToString/cs/roundtripex1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ static void Main(string[] args)
2626
// If compiled to an application that targets anycpu or x64 and run on an x64 system,
2727
// the example displays the following output:
2828
// Attempting to round-trip a Double with 'R':
29+
// .NET Framework:
2930
// 0.6822871999174 = 0.68228719991740006: False
31+
// .NET:
32+
// 0.6822871999174 = 0.6822871999174: True
3033
//
3134
// Attempting to round-trip a Double with 'G17':
3235
// 0.6822871999174 = 0.6822871999174: True

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Double.ToString/vb/roundtripex1.vb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ End Module
2828
' If compiled to an application that targets anycpu or x64 and run on an x64 system,
2929
' the example displays the following output:
3030
' Attempting to round-trip a Double with 'R':
31+
' .NET Framework:
3132
' 0.6822871999174 = 0.68228719991740006: False
33+
' .NET:
34+
' 0.6822871999174 = 0.6822871999174: True
3235
'
3336
' Attempting to round-trip a Double with 'G17':
3437
' 0.6822871999174 = 0.6822871999174: True

0 commit comments

Comments
 (0)