Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionWhat is free alternative to microsoft bot framework? Pin
Nitin S3-Mar-19 21:14
professionalNitin S3-Mar-19 21:14 
AnswerRe: What is free alternative to microsoft bot framework? Pin
Richard MacCutchan3-Mar-19 21:46
mveRichard MacCutchan3-Mar-19 21:46 
AnswerRe: What is free alternative to microsoft bot framework? Pin
Eddy Vluggen4-Mar-19 0:36
professionalEddy Vluggen4-Mar-19 0:36 
QuestionC# Code converted from Java gives error using in Script Task in SSIS Pin
Member 141699203-Mar-19 18:42
Member 141699203-Mar-19 18:42 
AnswerRe: C# Code converted from Java gives error using in Script Task in SSIS Pin
OriginalGriff3-Mar-19 19:56
mveOriginalGriff3-Mar-19 19:56 
RantWhy is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 2:21
Eric Lynch3-Mar-19 2:21 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Richard MacCutchan3-Mar-19 2:40
mveRichard MacCutchan3-Mar-19 2:40 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 4:24
Eric Lynch3-Mar-19 4:24 
UPDATE: Seems I'm simply wrong on my point below. I was misled by some less than clear wording in one part of the specification. That said, I still find it odd that float->double is the only one of the six possible C# floating-point conversions that is consistently less accurate in its apparent result. I tried a bunch of different values with this same consistent outcome. Something seems wrong to me.

I do understand your point. It is a great generalized warning for those unwilling to learn the specifics of the precise floating-point data type they are using.

If I were using something other than an IEEE 754 binary32 data type (float), or using more than six significant decimal digits, I would completely agree with you. However, since neither of these are the case here, I respectfully and completely disagree.

The behavior is simply inconsistent with the IEEE 754 specification. The specification of binary32 provides 23 explicit bits for the significand. This provides accuracy for a minimum of six significant decimal digits. The specification explicitly details that the representation of this number of significant decimal digits (six or less) must be exactly accurate.

In the case of binary64, which has 52 explicit bits for the significand, the specification requires accuracy to a minimum of 15 significant decimal digits.

modified 3-Mar-19 10:45am.

GeneralRe: Why is float to double conversion uniquely terrible? Pin
Richard MacCutchan3-Mar-19 5:14
mveRichard MacCutchan3-Mar-19 5:14 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 5:27
Eric Lynch3-Mar-19 5:27 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Richard MacCutchan3-Mar-19 5:45
mveRichard MacCutchan3-Mar-19 5:45 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 6:55
Eric Lynch3-Mar-19 6:55 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 18:28
Eric Lynch3-Mar-19 18:28 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Peter_in_27803-Mar-19 3:23
professionalPeter_in_27803-Mar-19 3:23 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 4:58
Eric Lynch3-Mar-19 4:58 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Eric Lynch3-Mar-19 7:07
Eric Lynch3-Mar-19 7:07 
GeneralRe: Why is float to double conversion uniquely terrible? Pin
Richard Deeming5-Mar-19 2:15
mveRichard Deeming5-Mar-19 2:15 
QuestionC# how to get all files from a directory that is inside the current project Pin
dolfijn300027-Feb-19 10:26
dolfijn300027-Feb-19 10:26 
AnswerRe: C# how to get all files from a directory that is inside the current project PinPopular
Richard Deeming27-Feb-19 10:43
mveRichard Deeming27-Feb-19 10:43 
QuestionForce Interface Implementation in Derived Classes? Pin
pr1mem0ver27-Feb-19 6:51
pr1mem0ver27-Feb-19 6:51 
AnswerRe: Force Interface Implementation in Derived Classes? Pin
Richard Deeming27-Feb-19 7:51
mveRichard Deeming27-Feb-19 7:51 
GeneralRe: Force Interface Implementation in Derived Classes? Pin
pr1mem0ver28-Feb-19 1:25
pr1mem0ver28-Feb-19 1:25 
GeneralRe: Force Interface Implementation in Derived Classes? Pin
Richard Deeming28-Feb-19 1:36
mveRichard Deeming28-Feb-19 1:36 
AnswerRe: Force Interface Implementation in Derived Classes? Pin
Gerry Schmitz27-Feb-19 13:51
mveGerry Schmitz27-Feb-19 13:51 
GeneralRe: Force Interface Implementation in Derived Classes? Pin
pr1mem0ver28-Feb-19 1:41
pr1mem0ver28-Feb-19 1:41 

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.