Click here to Skip to main content
15,893,487 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 7:00
sitebuilderLuc Pattyn28-Jul-08 7:00 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 9:37
supercat928-Jul-08 9:37 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
led mike28-Jul-08 9:53
led mike28-Jul-08 9:53 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 10:09
sitebuilderLuc Pattyn28-Jul-08 10:09 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 15:20
supercat928-Jul-08 15:20 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 16:05
sitebuilderLuc Pattyn28-Jul-08 16:05 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 15:54
supercat928-Jul-08 15:54 
Questionrounding to five decimal digits Pin
CICCIOLO6924-Jul-08 22:50
CICCIOLO6924-Jul-08 22:50 
I'll try to explain :
look this example :

Module

Module1
Sub Main()

Dim num AsDouble = 1.25

Console.WriteLine(Math.Round(num, 1, MidpointRounding.AwayFromZero))

num = 1.225

Console.WriteLine(Math.Round(num, 2, MidpointRounding.AwayFromZero))

num = 1.2225

Console.WriteLine(Math.Round(num, 3, MidpointRounding.AwayFromZero))

num = 1.22225

Console.WriteLine(Math.Round(num, 4, MidpointRounding.AwayFromZero))

num = 1.222225

Console.WriteLine(Math.Round(num, 5, MidpointRounding.AwayFromZero))

num = 1.2222225

Console.WriteLine(Math.Round(num, 6, MidpointRounding.AwayFromZero))

EndSub

End

Module


The output of this sample console application is :
1,3
1,23
1,223
1,2223
1,22222
1,222223

Is there something wrong ?
In my application I must use five decimal digits and this round method.

Regards
Andrea
Answercross-post Pin
Luc Pattyn25-Jul-08 5:18
sitebuilderLuc Pattyn25-Jul-08 5:18 
Answer[Cross Post]Re: rounding to five decimal digits (with link to original message) Pin
Scott Dorman25-Jul-08 5:21
professionalScott Dorman25-Jul-08 5:21 
AnswerRe: rounding to five decimal digits Pin
ghle26-Jul-08 5:47
ghle26-Jul-08 5:47 
QuestionWindows Service : More than one user Service may run within the same process Pin
Krugger40424-Jul-08 21:48
Krugger40424-Jul-08 21:48 
Answer[Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Scott Dorman25-Jul-08 4:18
professionalScott Dorman25-Jul-08 4:18 
GeneralRe: [Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Krugger40425-Jul-08 11:01
Krugger40425-Jul-08 11:01 
GeneralRe: [Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Scott Dorman25-Jul-08 14:15
professionalScott Dorman25-Jul-08 14:15 
QuestionPlease Clear my doubt !! Pin
guriqbal8724-Jul-08 2:37
guriqbal8724-Jul-08 2:37 
AnswerRe: Please Clear my doubt !! Pin
Luc Pattyn24-Jul-08 3:09
sitebuilderLuc Pattyn24-Jul-08 3:09 
GeneralRe: Please Clear my doubt !! Pin
guriqbal8724-Jul-08 3:27
guriqbal8724-Jul-08 3:27 
Questioninject code in .net exe files Pin
zon_cpp22-Jul-08 20:15
zon_cpp22-Jul-08 20:15 
AnswerRe: inject code in .net exe files Pin
leppie24-Jul-08 4:36
leppie24-Jul-08 4:36 
QuestionTargetting .NET 2.0 with Visual Studio 2008? Pin
Rob Caldecott22-Jul-08 5:10
Rob Caldecott22-Jul-08 5:10 
AnswerRe: Targetting .NET 2.0 with Visual Studio 2008? Pin
Mark Salsbery22-Jul-08 5:49
Mark Salsbery22-Jul-08 5:49 
AnswerRe: Targetting .NET 2.0 with Visual Studio 2008? Pin
Paul Conrad25-Jul-08 16:38
professionalPaul Conrad25-Jul-08 16:38 
Questionwhere is Exactly used Delegate Pin
Shaik Haneef21-Jul-08 20:25
Shaik Haneef21-Jul-08 20:25 
AnswerRe: where is Exactly used Delegate Pin
Brady Kelly21-Jul-08 22:52
Brady Kelly21-Jul-08 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.