Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden2-Jun-08 3:02
Peter Josefsson Sweden2-Jun-08 3:02 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George3-Jun-08 2:09
George_George3-Jun-08 2:09 
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden3-Jun-08 2:48
Peter Josefsson Sweden3-Jun-08 2:48 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George3-Jun-08 3:00
George_George3-Jun-08 3:00 
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden3-Jun-08 3:37
Peter Josefsson Sweden3-Jun-08 3:37 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George3-Jun-08 21:53
George_George3-Jun-08 21:53 
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden4-Jun-08 3:04
Peter Josefsson Sweden4-Jun-08 3:04 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George4-Jun-08 22:22
George_George4-Jun-08 22:22 
Great Peter!


I read the document,

a few more comments,

1.

"The Decimal value type is appropriate for financial calculations requiring large numbers of significant integral and fractional digits and no round-off errors." -- I do not agree no rounding error conclusion. Remember we discussed the case when data is realy too large/small which is out of range of Decimal, and the case of infinite numebr like 1/3? Any comments?

2.

"The binary representation of a Decimal value consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the 96-bit integer and specify what portion of it is a decimal fraction." -- Decimal frantion means the right part of a decimal (right part of the decimal point)?

3.

"binary integers (whole numbers)" -- you mean the whole number (except the decimal point used to scale), for example, 123.456 is stored as base 2 form of 123456 with a scale factor of 3?

Binary integers means integer represented in storage in base 2?

(really sorry for my so many questions, my English is not very good and I am really interested to discuss with you.)


regards,
George
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden4-Jun-08 23:01
Peter Josefsson Sweden4-Jun-08 23:01 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George4-Jun-08 23:27
George_George4-Jun-08 23:27 
GeneralRe: float calculation issue (decimal is no solution) Pin
Peter Josefsson Sweden5-Jun-08 4:01
Peter Josefsson Sweden5-Jun-08 4:01 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George5-Jun-08 14:48
George_George5-Jun-08 14:48 
QuestionThreadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 0:12
sumathi pandarinathan26-May-08 0:12 
AnswerRe: Threadpool Synchronization causing out of memory error Pin
leppie26-May-08 4:03
leppie26-May-08 4:03 
GeneralRe: Threadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 21:09
sumathi pandarinathan26-May-08 21:09 
Questionfolderbrowserdialog Pin
huotari25-May-08 23:57
huotari25-May-08 23:57 
AnswerRe: folderbrowserdialog Pin
Dario Solera26-May-08 0:18
Dario Solera26-May-08 0:18 
AnswerRe: folderbrowserdialog Pin
D i x y26-May-08 0:56
D i x y26-May-08 0:56 
QuestionFix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
kishoregani25-May-08 23:30
kishoregani25-May-08 23:30 
AnswerRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Dario Solera26-May-08 0:21
Dario Solera26-May-08 0:21 
GeneralRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Vasudevan Deepak Kumar26-May-08 19:18
Vasudevan Deepak Kumar26-May-08 19:18 
QuestionHow to get the row/column/data of cells selected in worksheet of Excel using C# Pin
Varad_Rajan25-May-08 23:25
Varad_Rajan25-May-08 23:25 
AnswerRe: How to get the row/column/data of cells selected in worksheet of Excel using C# Pin
leppie26-May-08 4:05
leppie26-May-08 4:05 
QuestionDetecting if a key is pressed outside the key events Pin
Christian Wikander25-May-08 23:24
Christian Wikander25-May-08 23:24 
AnswerRe: Detecting if a key is pressed outside the key events Pin
Roger Alsing26-May-08 0:55
Roger Alsing26-May-08 0:55 

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.