Click here to Skip to main content
15,176,980 members
Home / Discussions / C#
   

C#

 
QuestionListbox colours. Pin
Septimus Hedgehog26-Feb-13 8:35
MemberSeptimus Hedgehog26-Feb-13 8:35 
AnswerRe: Listbox colours. Pin
Alan N26-Feb-13 9:40
MemberAlan N26-Feb-13 9:40 
AnswerRe: Listbox colours. Pin
Dave Kreskowiak26-Feb-13 10:05
mveDave Kreskowiak26-Feb-13 10:05 
GeneralRe: Listbox colours. Pin
Septimus Hedgehog26-Feb-13 23:59
MemberSeptimus Hedgehog26-Feb-13 23:59 
GeneralRe: Listbox colours. Pin
Dave Kreskowiak27-Feb-13 2:01
mveDave Kreskowiak27-Feb-13 2:01 
GeneralRe: Listbox colours. Pin
Septimus Hedgehog27-Feb-13 6:39
MemberSeptimus Hedgehog27-Feb-13 6:39 
Questioncan floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 7:01
Membernotahack26-Feb-13 7:01 
AnswerRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 7:15
mveRichard Deeming26-Feb-13 7:15 
The float data-type[^] has a maximum precision of 7 digits. The result of your calculation requires 10 digits, and therefore cannot be stored accurately in a float.

I'm assuming you have a typo in your question. The actual result should be 172026668.6; the truncated result in a float is 172026700.

You should use either the double data-type[^], which has a precision of 15-16 digits, or the decimal data-type[^] which has more precision but a smaller range.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: can floats be multiplied and come up with a fraction? Pin
Richard MacCutchan26-Feb-13 7:26
mveRichard MacCutchan26-Feb-13 7:26 
AnswerRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 7:35
Membernotahack26-Feb-13 7:35 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 8:39
mveRichard Deeming26-Feb-13 8:39 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 8:44
Membernotahack26-Feb-13 8:44 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 9:03
mveRichard Deeming26-Feb-13 9:03 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 9:13
Membernotahack26-Feb-13 9:13 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Dave Kreskowiak26-Feb-13 10:03
mveDave Kreskowiak26-Feb-13 10:03 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Dave Kreskowiak26-Feb-13 9:58
mveDave Kreskowiak26-Feb-13 9:58 
QuestionC# EF5 List<ENum> Persisting ? Pin
Khorne26-Feb-13 5:01
MemberKhorne26-Feb-13 5:01 
AnswerRe: C# EF5 List<ENum> Persisting ? Pin
Ssyxz26-Feb-13 16:14
MemberSsyxz26-Feb-13 16:14 
GeneralRe: C# EF5 List<ENum> Persisting ? Pin
Khorne26-Feb-13 21:41
MemberKhorne26-Feb-13 21:41 
AnswerRe: C# EF5 List<ENum> Persisting ? Pin
Jegan Thiyagesan27-Feb-13 7:42
MemberJegan Thiyagesan27-Feb-13 7:42 
QuestionNeed code Pin
jelintaric25-Feb-13 23:41
Memberjelintaric25-Feb-13 23:41 
AnswerRe: Need code Pin
Manfred Rudolf Bihy26-Feb-13 0:06
professionalManfred Rudolf Bihy26-Feb-13 0:06 
AnswerRe: Need code Pin
Mycroft Holmes26-Feb-13 0:43
professionalMycroft Holmes26-Feb-13 0:43 
AnswerRe: Need code Pin
Amir Mohammad Nasrollahi29-Jul-13 22:33
professionalAmir Mohammad Nasrollahi29-Jul-13 22:33 
Questionformatting issue with iTextSharp Pin
krishnapnv25-Feb-13 20:10
Memberkrishnapnv25-Feb-13 20: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.