Click here to Skip to main content
15,922,533 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionabout CLR Pin
minihotto28-Oct-07 20:49
minihotto28-Oct-07 20:49 
QuestionForms.. Pin
Ylno28-Oct-07 17:02
Ylno28-Oct-07 17:02 
AnswerRe: Forms.. Pin
Luc Pattyn28-Oct-07 17:10
sitebuilderLuc Pattyn28-Oct-07 17:10 
GeneralRe: Forms.. Pin
Ylno28-Oct-07 17:17
Ylno28-Oct-07 17:17 
GeneralRe: Forms.. Pin
Luc Pattyn28-Oct-07 17:42
sitebuilderLuc Pattyn28-Oct-07 17:42 
QuestionMessage Removed Pin
26-Oct-07 15:39
Armond Sarkisian26-Oct-07 15:39 
AnswerRe: Logging Into A Windows Shared Folder Pin
TJoe29-Oct-07 6:28
TJoe29-Oct-07 6:28 
QuestionSystem::Math::Round(double, 2) not behaving correctly Pin
BuckBrown26-Oct-07 11:37
BuckBrown26-Oct-07 11:37 
Hi, I'm using Visual Studio 2005 C++/CLI. I have a double value of 4.000000000000000 that I subtract 0.2 from leaving 3.7999999999999998. I want to round this to 3.8 so I use 'double rounded_value = System::Math::Round(value_to_round, 2)' where the resulting value is exacly the same at 3.7999999999999998. In the next iteration I subtract 0.2 from the rounded value of 3.7999999999999998 leaving 3.5999999999999996. Then the Round() function results in 3.6000000000000001. After subtracting 0.2 from this I get 3.3999999999999995 and the Round() function results in 3.3999999999999999. If I use the Round() function to round to an integer it works fine, but this rounding to 2 significant digits is not working. Anyone know why?

Thanks

Buck
AnswerRe: System::Math::Round(double, 2) not behaving correctly Pin
George L. Jackson26-Oct-07 16:18
George L. Jackson26-Oct-07 16:18 
GeneralRe: System::Math::Round(double, 2) not behaving correctly Pin
BuckBrown29-Oct-07 8:36
BuckBrown29-Oct-07 8:36 
GeneralRe: System::Math::Round(double, 2) not behaving correctly Pin
Mark Salsbery29-Oct-07 9:14
Mark Salsbery29-Oct-07 9:14 
AnswerRe: System::Math::Round(double, 2) not behaving correctly Pin
Luc Pattyn26-Oct-07 16:35
sitebuilderLuc Pattyn26-Oct-07 16:35 
GeneralRe: System::Math::Round(double, 2) not behaving correctly Pin
Mark Salsbery27-Oct-07 7:18
Mark Salsbery27-Oct-07 7:18 
QuestionCan SaveFileDialog be forced to top? Pin
BuckBrown26-Oct-07 10:54
BuckBrown26-Oct-07 10:54 
AnswerRe: Can SaveFileDialog be forced to top? Pin
Luc Pattyn26-Oct-07 11:18
sitebuilderLuc Pattyn26-Oct-07 11:18 
GeneralRe: Can SaveFileDialog be forced to top? Pin
BuckBrown26-Oct-07 11:41
BuckBrown26-Oct-07 11:41 
QuestionHow to make a listener on a folder, for client-server data synchronization? Pin
Caetano.n.a26-Oct-07 1:52
Caetano.n.a26-Oct-07 1:52 
AnswerRe: How to make a listener on a folder, for client-server data synchronization? Pin
Giorgi Dalakishvili26-Oct-07 6:26
mentorGiorgi Dalakishvili26-Oct-07 6:26 
GeneralRe: How to make a listener on a folder, for client-server data synchronization? Pin
George L. Jackson26-Oct-07 9:34
George L. Jackson26-Oct-07 9:34 
AnswerRe: How to make a listener on a folder, for client-server data synchronization? Pin
George L. Jackson26-Oct-07 9:34
George L. Jackson26-Oct-07 9:34 
Questionhow to import dll in c++ ? Pin
cmpeng3426-Oct-07 0:37
cmpeng3426-Oct-07 0:37 
AnswerRe: how to import dll in c++ ? Pin
Jonathan [Darka]26-Oct-07 1:00
professionalJonathan [Darka]26-Oct-07 1:00 
Questionchar * to String^ Pin
KienNT7825-Oct-07 21:28
KienNT7825-Oct-07 21:28 
AnswerRe: char * to String^ [modified] Pin
Mark Salsbery26-Oct-07 6:28
Mark Salsbery26-Oct-07 6:28 
AnswerRe: char * to String^ Pin
Newbie0026-Oct-07 7:10
Newbie0026-Oct-07 7:10 

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.